Function at 0x436649
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2bdf
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d2a20]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
call fcn.0043dbeb
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0043dbf3
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4366a8
lea eax, [ebp + 8]
push eax
call fcn.0043dbbf
pop ecx
jmp 0x436931
mov ecx, dword [ebp - 0x7c]
call fcn.0043dc07
test eax, eax
je 0x4366ed
mov ecx, dword [ebp - 0x7c]
call fcn.0043dc07
mov esi, eax
mov ecx, dword [ebp - 0x7c]
call fcn.004375ef
cmp esi, eax
jae 0x4366ed
lea eax, [ebp + 8]
push eax
call fcn.0043db7b
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x7c]
call fcn.0043db85
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x436931
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x4c], 0
jne 0x436705
call fcn.0043dbeb
jmp 0x436931
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x3c], 0
jne 0x43674a
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x4c]
lea eax, [ebp + 8]
push eax
call fcn.0043db7b
pop ecx
push eax
call fcn.004359a5
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x436735
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
jmp 0x43673d
call fcn.0043dbeb
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
jmp 0x436931
mov dword [ebp - 0x10], 8
lea eax, [ebp + 8]
push eax
call fcn.0043db7b
pop ecx
mov byte [ebp - 0x15], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0043731f
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004373bf
mov ecx, eax
call fcn.004376d7
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00428568
add esi, eax
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004373bf
mov ecx, eax
call fcn.004376d7
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 0x7c]
add eax, 0x44
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x3c]
call fcn.00438ed2
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jl 0x436907
cmp dword [ebp - 0x84], 1
jle 0x4367f2
cmp dword [ebp - 0x84], 3
je 0x4368c0
jmp 0x436907
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004373bf
mov ecx, eax
call fcn.004376d7
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x436857
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x4c]
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004373bf
mov ecx, eax
call fcn.004376d7
push eax
call sub.MSVCR80.dll_fwrite
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x436857
call fcn.0043dbeb
mov dword [ebp - 0x68], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406b99
mov eax, dword [ebp - 0x68]
jmp 0x436931
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x41], 1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x15]
cmp eax, ecx
je 0x436882
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406b99
mov eax, dword [ebp - 0x6c]
jmp 0x436931
cmp dword [ebp - 0x40], 0
jbe 0x43688a
jmp 0x4368be
lea ecx, [ebp - 0x3c]
call fcn.00428568
cmp eax, 0x20
jae 0x4368a5
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00437358
jmp 0x4368be
call fcn.0043dbeb
mov dword [ebp - 0x70], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406b99
mov eax, dword [ebp - 0x70]
jmp 0x436931
jmp 0x436920
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x4c]
push dword [ebp - 0x15]
call fcn.004359a5
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4368e2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
jmp 0x4368ed
call fcn.0043dbeb
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x74], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406b99
mov eax, dword [ebp - 0x74]
jmp 0x436931
call fcn.0043dbeb
mov dword [ebp - 0x78], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00406b99
mov eax, dword [ebp - 0x78]
jmp 0x436931
jmp 0x43676e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0047676d
leave
ret 4