Function at 0x40ee90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6191a9
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 - 0x1c], 0
mov dword [ebp - 0x20], 9
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xb0c]
add ecx, 0x24
call fcn.00403930
mov dword [ebp - 0x14], eax
push 1
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0xb0c]
add ecx, 0x24
call fcn.00403930
mov dword [ebp - 0x24], eax
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 esi, dword [ebp - 0x2c]
xor edi, edi
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, 0x20
call fcn.004818b0
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x90], esi
mov dword [ecx + 0x94], edi
mov edx, dword [ebp - 0x10]
add edx, 0x90
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 4], 0
jg 0x40ef77
jl 0x40ef47
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0
jae 0x40ef77
mov edx, dword [ebp - 0x10]
mov eax, dword [0x87f990]
mov dword [edx + 0x90], eax
mov ecx, dword [0x87f994]
mov dword [edx + 0x94], ecx
mov edx, dword [0x87f998]
mov dword [ebp - 0x28], edx
mov eax, dword [0x87f99c]
mov dword [ebp - 0x2c], eax
jmp 0x40f0cc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x90]
mov dword [0x87f990], edx
mov eax, dword [ecx + 0x94]
mov dword [0x87f994], eax
mov ecx, dword [ebp - 0x28]
mov dword [0x87f998], ecx
mov edx, dword [ebp - 0x2c]
mov dword [0x87f99c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xb0c]
add ecx, 0x24
call fcn.00403700
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jmp 0x40efea
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0xf
jge 0x40f018
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 - 0x10]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40f016
jmp 0x40f018
jmp 0x40efe1
cmp dword [ebp - 0x34], 0xf
jne 0x40f075
cmp dword [ebp - 0x30], 0
jne 0x40f075
push 0x30
push 0x64f454
push 0x64f4b4
mov edx, dword [ebp - 0x10]
add edx, 0x68
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.005f7c11
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
call fcn.00402c90
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.005f797c
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 1
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov esi, dword [edx + 0x90]
add esi, eax
mov edx, dword [edx + 0x94]
adc edx, ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x90], esi
mov dword [eax + 0x94], edx
mov ecx, dword [ebp - 0x10]
call fcn.0040f5d0
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [ecx + 0x66]
test edx, edx
je 0x40f0e4
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0040f560
jmp 0x40f133
mov byte [ebp - 0x40], 7
push 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3f]
push ecx
call fcn.0047ff00
add esp, 0xc
push 4
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3b]
push eax
call fcn.0047ff00
add esp, 0xc
push 9
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xb0c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xb10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xb10]
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret