Function at 0x40e2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593439
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 9
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x654]
add ecx, 0x24
call fcn.00402740
mov dword [ebp - 0x14], eax
push 1
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x654]
add ecx, 0x24
call fcn.00402740
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 4]
xor edi, edi
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 0x20
call fcn.00451b90
or esi, eax
or edi, edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x80], esi
mov dword [edx + 0x84], edi
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x654]
add ecx, 0x24
call fcn.00402510
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.005776e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 0
jmp 0x40e3da
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0xf
jge 0x40e405
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jle 0x40e403
jmp 0x40e405
jmp 0x40e3d1
cmp dword [ebp - 0x38], 0xf
jne 0x40e462
cmp dword [ebp - 0x34], 0
jg 0x40e462
push 0x30
push 0x5a8564
push 0x5a8f04
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00577545
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
call fcn.00401bd0
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.005772b0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov esi, dword [ecx + 0x80]
add esi, edx
mov ecx, dword [ecx + 0x84]
adc ecx, eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x80], esi
mov dword [edx + 0x84], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040e7e0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x5c]
test ecx, ecx
je 0x40e4b1
mov ecx, dword [ebp - 0x10]
call fcn.0040e7a0
jmp 0x40e500
mov byte [ebp - 0x44], 7
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edx
push 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x43]
push ecx
call fcn.00450890
add esp, 0xc
push 4
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3f]
push eax
call fcn.00450890
add esp, 0xc
push 9
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x654]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x658]
call fcn.00416100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret