Function at 0x4084b0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
movzx edx, word [0x452060]
movzx edi, word [0x452062]
mov byte [0x4526c5], 0
imul ebx, dword [esp + 0x90], 0xa48
mov eax, dword [esp + 0x94]
mov dword [0x4526c0], 0x754aa55
shl edx, 0x10
mov byte [0x4526c4], al
movzx eax, al
or edx, edi
mov ecx, dword [ebx + 0x4529c0]
imul eax, eax, 0x1b0
mov dword [esp + 0x6c], edx
xor edx, edx
mov word [0x4526c6], dx
lea edx, [ecx + ecx*8 - 9]
lea edx, [eax + edx*8]
lea eax, [edx + 0x459380]
mov ebp, dword [edx + 0x459380]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 0x28]
mov dword [0x4526cc], edi
mov edi, dword [esp + 0x40]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x4c], ecx
mov dword [0x4526d0], edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x50], edx
mov dword [0x4526d4], edi
mov edi, dword [esp + 0x34]
mov edx, dword [eax + 0x34]
mov dword [esp + 0x54], ecx
mov dword [0x4526d8], edi
mov edi, dword [esp + 0x2c]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x58], edx
mov dword [0x4526dc], edi
mov edi, dword [esp + 0x44]
mov edx, dword [eax + 0x40]
mov dword [esp + 0x5c], ecx
mov dword [0x4526e0], edi
mov edi, dword [esp + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
mov dword [0x4526c8], ebp
lea ebp, [esp + 0x6c]
mov dword [0x4526e4], edi
mov edi, dword [esp + 0x30]
mov dword [0x4526e8], edi
mov edi, dword [esp + 0x48]
mov dword [0x4526ec], edi
mov edi, dword [esp + 0x4c]
mov dword [0x4526f0], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 8], 4
mov dword [0x4526f4], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 4], ebp
mov dword [0x4526f8], edi
mov edi, dword [esp + 0x58]
mov dword [esp], 0xffffffff
mov dword [0x4526fc], edi
mov edi, dword [esp + 0x5c]
mov dword [0x452704], ecx
mov dword [0x452708], edx
mov dword [0x452700], edi
lea edi, [ebx + 0x4529ec]
mov dword [0x45270c], eax
call fcn.00401f50
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x4526c0
mov dword [esp], eax
call fcn.00401f50
mov ecx, dword [ebx + 0x452a00]
lea edx, [ebx + 0x22c]
mov dword [0x452710], eax
test ecx, ecx
jne 0x408700
imul ebx, dword [esp + 0x90], 0xa48
mov dword [edx + 0x4527c0], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x4529d4]
mov dword [esp + 0x10], edi
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 0x408750
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x4529cc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebx + 0x4529d4]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebx + 0x452a00], 0
sub esp, 4
mov edx, dword [esp + 0x2c]
jmp 0x40867a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4086f2
mov dword [ebx + 0x240], 1
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret