Function at 0x401fe8
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x426eda
call fcn.0041c160
sub esp, 0xd0
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp dword [ebp - 0x14], edi
je 0x402034
lea ecx, [ebp - 0x14]
call fcn.0040330e
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40204b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040330e
jmp 0x4023a5
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.00401fac
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.00402eb9
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
je 0x402374
mov esi, 0x42d108
mov edi, 0x42d104
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x7c], al
call fcn.00401fac
push 0x42d100
call fcn.0041baa0
pop ecx
push eax
push 0x42d100
lea ecx, [ebp - 0x7c]
call fcn.0040356a
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0x428478
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x4020c2
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.00401fac
push 0x42d0fc
call fcn.0041baa0
pop ecx
push eax
push 0x42d0fc
lea ecx, [ebp - 0x4c]
call fcn.0040356a
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004047c2
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040484b
add esp, 0x18
push dword [0x428474]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
push ebx
push eax
call fcn.0040349c
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.00401fac
push 1
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 3
call fcn.00401fac
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401fac
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00401fac
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x428478
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x402182
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.0041baa0
pop ecx
lea ecx, [ebp - 0x24]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x1c]
call fcn.00403219
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 6
call fcn.00402eb9
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x88]
je 0x402308
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x6c], al
call fcn.00401fac
push esi
call fcn.0041baa0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040356a
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
mov byte [ebp - 0x5c], al
call fcn.00401fac
push edi
call fcn.0041baa0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040356a
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 8
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xc
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0040484b
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 9
add ecx, 0x1c
push ecx
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040484b
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0040484b
add esp, 0x24
push dword [0x428474]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
push ebx
push eax
call fcn.0040349c
push 1
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xa
call fcn.00401fac
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 9
call fcn.00401fac
push 1
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 8
call fcn.00401fac
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.00401fac
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00401fac
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x428478
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4022dd
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.0041baa0
pop ecx
lea ecx, [ebp - 0x24]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x20]
call fcn.004042c2
mov eax, dword [ebp - 0x20]
jmp 0x4021c8
push esi
call fcn.0041baa0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040356a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x428478
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x402330
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.0041baa0
pop ecx
lea ecx, [ebp - 0x24]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004032c5
lea ecx, [ebp - 0x1c]
call fcn.004042f8
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x1c], eax
jne 0x402082
mov esi, dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0041baa0
pop ecx
push eax
lea ecx, [esi + 0x10]
push dword [ebp + 8]
call fcn.00402a64
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401fac
cmp dword [ebp - 0x14], 0xffffffff
je 0x4023a5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
leave
ret 4