Function at 0x401112
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x60], 0x523f4
cmp dword [ebp - 0x60], 0
je 0x401208
mov dword [ebp - 0x2c], 0x2ac4b
mov dword [ebp - 0x6c], 0x10
push dword [sym.imp.kernel32.dll_GetProcAddress]
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 0x400000
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x60]
sub eax, 0x51342
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x54], 0xffff687b
pop eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x54]
add edx, 0xe591
mov dword [ebp - 0x54], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x2c]
sub eax, 0x2ac11
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0xc9760a7
push dword [ebp - 8]
pop dword [ebp - 0x30]
mov dword [ebp - 0x20], 0xb38b9f5b
mov ecx, dword [ebp - 0x30]
add ecx, 0x17b2
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0xa
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 6
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x3c]
add edx, 4
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
imul eax, eax, 3
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401435
add esp, 0xc
push 1
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00401435
add esp, 0xc
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x84], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x74]
mov cl, byte [eax]
mov byte [ebp - 0x84], cl
mov dl, byte [ebp - 0x84]
add dl, byte [ebp - 0x40]
mov byte [ebp - 0x84], dl
push 1
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
add ecx, dword [ebp - 0x74]
push ecx
call fcn.00401435
add esp, 0xc
cmp dword [ebp - 0x78], 7
je 0x40138d
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
jmp 0x401394
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp - 0x60]
jb 0x401312
mov edx, dword [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x7c]
push edx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_WriteFile]
or eax, eax
jne 0x4013cb
mov edx, dword [ebp - 0x70]
push ebx
jmp edx
sub eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret