Function at 0x407b60
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
movzx eax, word [0x452060]
movzx edx, word [0x452062]
mov dword [0x4526c0], 0xd6caa55
mov byte [0x4526c5], 0
lea edi, [esp + 0x2c]
shl eax, 0x10
or eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov byte [0x4526c4], al
xor eax, eax
mov word [0x4526c6], ax
mov eax, dword [0x458624]
mov dword [0x4526c8], eax
movzx eax, word [0x45862a]
mov word [0x4526cc], ax
movzx eax, word [0x458632]
mov word [0x4526ce], ax
movzx eax, word [0x458628]
mov word [0x4526d0], ax
mov eax, dword [0x45864c]
mov dword [0x4526d4], eax
movzx eax, word [0x458652]
mov word [0x4526d8], ax
movzx eax, word [0x45865a]
mov word [0x4526da], ax
movzx eax, word [0x458650]
mov word [0x4526dc], ax
mov eax, dword [0x458674]
mov dword [0x4526e0], eax
movzx eax, word [0x45867a]
mov word [0x4526e4], ax
movzx eax, word [0x458682]
mov word [0x4526e6], ax
movzx eax, word [0x458678]
mov word [0x4526e8], ax
mov eax, dword [0x45869c]
mov dword [0x4526ec], eax
movzx eax, word [0x4586a2]
mov word [0x4526f0], ax
movzx eax, word [0x4586aa]
mov word [0x4526f2], ax
movzx eax, word [0x4586a0]
mov word [0x4526f4], ax
mov eax, dword [0x4586c4]
mov dword [0x4526f8], eax
movzx eax, word [0x4586ca]
mov word [0x4526fc], ax
movzx eax, word [0x4586d2]
mov word [0x4526fe], ax
movzx eax, word [0x4586c8]
mov word [0x452700], ax
mov eax, dword [0x4586ec]
mov dword [0x452704], eax
movzx eax, word [0x4586f2]
mov word [0x452708], ax
movzx eax, word [0x4586fa]
mov word [0x45270a], ax
movzx eax, word [0x4586f0]
mov word [0x45270c], ax
mov eax, dword [0x458714]
mov dword [0x452710], eax
movzx eax, word [0x45871a]
mov word [0x452714], ax
movzx eax, word [0x458722]
mov dword [esp + 8], 4
mov word [0x452716], ax
movzx eax, word [0x458718]
mov dword [esp + 4], edi
mov word [0x452718], ax
mov eax, dword [0x45873c]
mov dword [esp], 0xffffffff
mov dword [0x45271c], eax
movzx eax, word [0x458742]
mov word [0x452720], ax
movzx eax, word [0x45874a]
mov word [0x452722], ax
movzx eax, word [0x458740]
mov word [0x452724], ax
mov eax, dword [0x458764]
mov dword [0x452728], eax
movzx eax, word [0x45876a]
mov word [0x45272c], ax
movzx eax, word [0x458772]
mov word [0x45272e], ax
movzx eax, word [0x458768]
mov word [0x452730], ax
call fcn.00401f50
mov dword [esp + 8], 0x68
mov dword [esp + 4], 0x4526c0
mov dword [esp], eax
call fcn.00401f50
mov dword [0x452728], eax
imul eax, dword [esp + 0x50], 0xa48
mov edx, dword [eax + 0x452a00]
lea ebp, [eax + 0x22c]
lea esi, [eax + 0x4529ec]
test edx, edx
jne 0x407e38
imul ebx, dword [esp + 0x50], 0xa48
mov dword [ebp + 0x4527c0], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ebx + 0x4529d4]
mov dword [esp + 0x10], esi
mov dword [ebx + 0x4529fc], eax
movzx eax, byte [0x4526c2]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4529cc]
add ebx, 0x4527c0
mov dword [esp + 4], 0x4526c0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407e88
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [eax + 0x4527c0]
mov eax, dword [eax + 0x4529cc]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebx + 0x214]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebx + 0x240], 0
sub esp, 4
jmp 0x407db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x407e29
mov dword [ebx + 0x240], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret