Function at 0x1004f920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100d65e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 8], 0
mov dword [ebp - 0x5c], 0
jbe 0x1004fabd
xor esi, esi
mov dword [ebp - 0x68], esi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
add eax, 9
add esi, eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x60], esi
cmp dword [esi + 2], eax
ja 0x1004fac7
mov edx, dword [ebx]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
movzx eax, word [esi]
push eax
mov ecx, ebx
call dword [edx + 8]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x70]
call fcn.1004ff50
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1004fa0f
cmp dword [ebp - 0x14], 0x10
jb 0x1004f9f4
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000fba0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
jb 0x1004fa24
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], 0xf
mov esi, dword [edi]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp esi, dword [edi + 4]
je 0x1004fa69
cmp dword [esi + 0x30], 0x10
jb 0x1004fa4b
mov eax, dword [esi + 0x1c]
jmp 0x1004fa4e
lea eax, [esi + 0x1c]
push dword [esi + 0x2c]
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.100076a0
cmp eax, 0xffffffff
jne 0x1004face
add esi, 0x64
cmp esi, dword [edi + 4]
jne 0x1004fa40
mov eax, dword [ebp - 0x60]
lea ecx, [ebx + 0x10]
mov ax, word [eax]
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call fcn.1004f050
push eax
add eax, 0x10
push eax
lea eax, [ebp - 0x9c]
push 0
push eax
lea ecx, [ebx + 0x10]
call fcn.1004f2f0
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x68]
inc edx
add esi, 6
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x68], esi
cmp edx, dword [ebx + 8]
jb 0x1004f993
mov eax, dword [ebp - 0x74]
cmp dword [ebx + 0x14], 0
jne 0x1004fbd7
xor bl, bl
jmp 0x1004fd73
cmp dword [esi + 0x48], 0x10
mov ecx, dword [esi + 0x44]
lea eax, [esi + 0x34]
jb 0x1004fadc
mov eax, dword [eax]
push ecx
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100076a0
cmp eax, 0xffffffff
je 0x1004fb5c
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10019fd0
mov edi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x1004fb35
cmp dword [ebp - 0x14], 0x10
jb 0x1004fb1a
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000fba0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x1004fb4a
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push 0xffffffffffffffff
push 0
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000a350
push 1
push 0x100bea90
mov ecx, eax
call fcn.1000c4c0
add esi, 0x4c
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x1004fb90
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.1000feb0
cmp dword [esi + 0x14], 0x10
jb 0x1004fb9a
mov edx, dword [esi]
jmp 0x1004fb9c
mov edx, esi
mov eax, dword [ebp - 0x60]
mov ecx, dword [esi + 0x10]
mov ax, word [eax]
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x84], ecx
push eax
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x88], edx
call fcn.1004f050
push eax
add eax, 0x10
push eax
lea eax, [ebp - 0x94]
jmp 0x1004fa96
cmp dword [eax + 0x14], 8
jb 0x1004fbdf
mov eax, dword [eax]
push 0x40
push 0x100be88c
push eax
call fcn.1007dde4
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004fbfc
xor bl, bl
jmp 0x1004fd73
push edi
push 1
push 4
push 0x100b5460
call fcn.1007dd66
add esp, 0x10
push edi
cmp eax, 1
je 0x1004fc23
call fcn.1007db98
add esp, 4
xor bl, bl
jmp 0x1004fd73
mov eax, dword [ebx + 0x14]
push 1
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push 4
push eax
call fcn.1007dd66
add esp, 0x10
push edi
cmp eax, 1
je 0x1004fc4e
call fcn.1007db98
add esp, 4
xor bl, bl
jmp 0x1004fd73
push 1
lea eax, [ebp - 0x61]
push 1
push eax
mov byte [ebp - 0x61], 1
call fcn.1007dd66
add esp, 0x10
cmp eax, 1
je 0x1004fc77
push edi
call fcn.1007db98
add esp, 4
xor bl, bl
jmp 0x1004fd73
mov eax, dword [ebp - 0x68]
lea eax, [eax + eax*2]
add eax, 3
add eax, eax
add eax, 9
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x5c], esi
cmp esi, eax
je 0x1004fce0
movzx eax, word [esi + 0x10]
push edi
push 1
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push 2
push eax
call fcn.1007dd66
add esp, 0x10
push edi
cmp eax, 1
jne 0x1004fc14
push eax
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.1007dd66
add esp, 0x10
cmp eax, 1
jne 0x1004fc67
mov eax, dword [esi + 0x18]
add dword [ebp - 0x60], eax
lea ecx, [ebp - 0x5c]
call fcn.10008010
mov esi, dword [ebp - 0x5c]
cmp esi, dword [ebx + 0x10]
jne 0x1004fc94
push edi
push 1
lea eax, [ebp - 0x6c]
push 2
push eax
mov dword [ebp - 0x6c], 0
call fcn.1007dd66
add esp, 0x10
push edi
cmp eax, 1
je 0x1004fd0a
call fcn.1007db98
add esp, 4
xor bl, bl
jmp 0x1004fd73
push 1
lea eax, [ebp - 0x60]
push 4
push eax
call fcn.1007dd66
add esp, 0x10
cmp eax, 1
je 0x1004fd2c
push edi
call fcn.1007db98
add esp, 4
xor bl, bl
jmp 0x1004fd73
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
cmp ecx, eax
je 0x1004fd68
cmp dword [ecx + 0x18], 0
je 0x1004fd58
push edi
push 1
push dword [ecx + 0x18]
push dword [ecx + 0x14]
call fcn.1007dd66
add esp, 0x10
cmp eax, 1
jne 0x1004fc67
lea ecx, [ebp - 0x5c]
call fcn.10008010
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebx + 0x10]
jne 0x1004fd38
push edi
call fcn.1007db98
add esp, 4
mov bl, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x1004fd8b
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007e654
mov esp, ebp
pop ebp
ret 8