Function at 0x418777
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573259
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5e3c30]
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 - 0x6c], ecx
call fcn.00406587
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00406573
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x4187d3
lea eax, [ebp + 8]
push eax
call fcn.0041785d
pop ecx
jmp 0x418a4a
mov ecx, dword [ebp - 0x6c]
call fcn.00419311
test eax, eax
je 0x418815
mov ecx, dword [ebp - 0x6c]
call fcn.00419311
mov esi, eax
mov ecx, dword [ebp - 0x6c]
call fcn.0041936c
cmp esi, eax
jae 0x418815
lea eax, [ebp + 8]
push eax
call fcn.004158bb
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x6c]
call fcn.0040842d
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x418a4a
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x54], 0
jne 0x418828
call fcn.00406587
jmp 0x418a4a
mov ecx, dword [ebp - 0x6c]
call fcn.00419554
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x44], 0
jne 0x418878
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x54]
lea eax, [ebp + 8]
push eax
call fcn.004158bb
pop ecx
movzx eax, al
push eax
call fcn.00417a6f
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x418863
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
jmp 0x41886b
call fcn.00406587
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
jmp 0x418a4a
mov dword [ebp - 0x10], 8
lea eax, [ebp + 8]
push eax
call fcn.004158bb
pop ecx
mov byte [ebp - 0x15], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00415fe1
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00419640
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 0x6c]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x44]
call fcn.004196a4
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jl 0x418a20
cmp dword [ebp - 0x74], 1
jle 0x418914
cmp dword [ebp - 0x74], 3
je 0x4189e2
jmp 0x418a20
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x418979
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x54]
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041604f
mov ecx, eax
call fcn.004163da
push eax
call fcn.00544feb
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x418979
call fcn.00406587
mov dword [ebp - 0x58], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401d44
mov eax, dword [ebp - 0x58]
jmp 0x418a4a
mov eax, dword [ebp - 0x6c]
mov byte [eax + 0x49], 1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x15]
cmp eax, ecx
je 0x4189a4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401d44
mov eax, dword [ebp - 0x5c]
jmp 0x418a4a
cmp dword [ebp - 0x40], 0
jbe 0x4189ac
jmp 0x4189e0
lea ecx, [ebp - 0x3c]
call fcn.00419640
cmp eax, 0x20
jae 0x4189c7
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00407cea
jmp 0x4189e0
call fcn.00406587
mov dword [ebp - 0x60], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401d44
mov eax, dword [ebp - 0x60]
jmp 0x418a4a
jmp 0x418a39
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x54]
push dword [ebp - 0x15]
call fcn.00417a6f
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x418a01
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
jmp 0x418a09
call fcn.00406587
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401d44
mov eax, dword [ebp - 0x64]
jmp 0x418a4a
call fcn.00406587
mov dword [ebp - 0x68], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401d44
mov eax, dword [ebp - 0x68]
jmp 0x418a4a
jmp 0x41889c
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.00543a33
leave
ret 4