Function at 0x40ec11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6392ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 9
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x9a8]
add ecx, 0x24
call fcn.0040410e
mov dword [ebp - 0x14], eax
push 1
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x9a8]
add ecx, 0x24
call fcn.0040410e
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
xor edi, edi
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 0x20
call fcn.004ad750
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x90], esi
mov dword [ecx + 0x94], edi
mov edx, dword [ebp - 0x44]
add edx, 0x90
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 4], 0
jg 0x40ecf4
jl 0x40ecc4
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0
jae 0x40ecf4
mov edx, dword [ebp - 0x44]
mov eax, dword [0x76bb38]
mov dword [edx + 0x90], eax
mov ecx, dword [0x76bb3c]
mov dword [edx + 0x94], ecx
mov edx, dword [0x76bb40]
mov dword [ebp - 0x18], edx
mov eax, dword [0x76bb44]
mov dword [ebp - 0x1c], eax
jmp 0x40ee49
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x90]
mov dword [0x76bb38], edx
mov eax, dword [ecx + 0x94]
mov dword [0x76bb3c], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x76bb40], ecx
mov edx, dword [ebp - 0x1c]
mov dword [0x76bb44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x9a8]
add ecx, 0x24
call fcn.00403d9c
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jmp 0x40ed67
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0xf
jge 0x40ed95
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
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 0x40ed93
jmp 0x40ed95
jmp 0x40ed5e
cmp dword [ebp - 0x2c], 0xf
jne 0x40edf2
cmp dword [ebp - 0x30], 0
jne 0x40edf2
push 0x30
push 0x6d871c
push 0x6d8724
mov edx, dword [ebp - 0x44]
add edx, 0x68
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00619013
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.00403580
push eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00618d7e
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov esi, dword [edx + 0x90]
add esi, eax
mov edx, dword [edx + 0x94]
adc edx, ecx
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x90], esi
mov dword [eax + 0x94], edx
mov ecx, dword [ebp - 0x44]
call fcn.0040f324
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov dl, byte [ecx + 0x66]
test edx, edx
je 0x40ee61
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0040f2cb
jmp 0x40eea9
mov byte [ebp - 0x3c], 0xd
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3b]
push ecx
call fcn.004ac230
add esp, 0xc
push 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x37]
push eax
call fcn.004ac230
add esp, 0xc
push 0
push 9
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x9a8]
push eax
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x9ac]
call fcn.00416bf7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret