Function at 0x407eb0
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], 0xd54aa55
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
mov eax, dword [0x45864c]
mov dword [0x4526d0], eax
movzx eax, word [0x458652]
mov word [0x4526d4], ax
movzx eax, word [0x45865a]
mov word [0x4526d6], ax
mov eax, dword [0x458674]
mov dword [0x4526d8], eax
movzx eax, word [0x45867a]
mov word [0x4526dc], ax
movzx eax, word [0x458682]
mov word [0x4526de], ax
mov eax, dword [0x45869c]
mov dword [0x4526e0], eax
movzx eax, word [0x4586a2]
mov word [0x4526e4], ax
movzx eax, word [0x4586aa]
mov word [0x4526e6], ax
mov eax, dword [0x4586c4]
mov dword [0x4526e8], eax
movzx eax, word [0x4586ca]
mov word [0x4526ec], ax
movzx eax, word [0x4586d2]
mov word [0x4526ee], ax
mov eax, dword [0x4586ec]
mov dword [0x4526f0], eax
movzx eax, word [0x4586f2]
mov word [0x4526f4], ax
movzx eax, word [0x4586fa]
mov word [0x4526f6], ax
mov eax, dword [0x458714]
mov dword [0x4526f8], eax
movzx eax, word [0x45871a]
mov word [0x4526fc], ax
movzx eax, word [0x458722]
mov word [0x4526fe], ax
mov eax, dword [0x45873c]
mov dword [0x452700], eax
movzx eax, word [0x458742]
mov word [0x452704], ax
movzx eax, word [0x45874a]
mov word [0x452706], ax
mov eax, dword [0x458764]
mov dword [0x452708], eax
movzx eax, word [0x45876a]
mov word [0x45270c], ax
movzx eax, word [0x458772]
mov dword [esp + 8], 4
mov dword [esp + 4], edi
mov dword [esp], 0xffffffff
mov word [0x45270e], ax
call fcn.00401f50
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x4526c0
mov dword [esp], eax
call fcn.00401f50
mov dword [0x452710], eax
imul eax, dword [esp + 0x50], 0xa48
mov edx, dword [eax + 0x452a00]
lea ebp, [eax + 0x22c]
lea esi, [eax + 0x4529ec]
test edx, edx
jne 0x408110
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 0x408160
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 0x40808f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x408104
mov dword [ebx + 0x240], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret