Function at 0x402f7a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x46d136
call fcn.00453e8c
sub esp, 0xc8
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_CreateFileW]
mov edi, eax
cmp dword [ebp - 0x14], edi
je 0x402fc6
lea ecx, [ebp - 0x14]
call fcn.00405c0a
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0xffffffff
jne 0x402fdf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405c0a
xor al, al
jmp 0x403399
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.00404670
push 0xfeff
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00405270
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
cmp edi, ebx
mov dword [ebp - 0x18], eax
jne 0x403013
mov edi, 0x47563c
push edi
call fcn.00453eb4
pop ecx
add eax, eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0040472f
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
je 0x403350
mov esi, 0x4891f0
mov edi, 0x4891ec
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push eax
call fcn.0040472f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x40]
je 0x4030a9
push esi
call fcn.00453eb4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040522e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x47563c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x40308c
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00453eb4
pop ecx
add eax, eax
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]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x74], al
call fcn.00404670
push 0x4891e4
call fcn.00453eb4
pop ecx
push eax
push 0x4891e4
lea ecx, [ebp - 0x74]
call fcn.0040522e
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0x47563c
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x4030e9
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x84], al
call fcn.00404670
push 0x4891e0
call fcn.00453eb4
pop ecx
push eax
push 0x4891e0
lea ecx, [ebp - 0x84]
call fcn.0040522e
push dword [ebp - 0x10]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00406f60
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00406fe9
add esp, 0x18
push dword [0x475638]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
push ebx
push eax
call fcn.00405150
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.00404670
push 1
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 3
call fcn.00404670
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00404670
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00404670
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x47563c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4031b8
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00453eb4
pop ecx
add eax, eax
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]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x1c]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x18], ecx
call fcn.00405694
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx + 4]
je 0x403336
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x54], al
call fcn.00404670
push esi
call fcn.00453eb4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.0040522e
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
mov byte [ebp - 0x64], al
call fcn.00404670
push edi
call fcn.00453eb4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x64]
call fcn.0040522e
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 7
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xc
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00406fe9
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 8
add ecx, 0x1c
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00406fe9
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00406fe9
add esp, 0x24
push dword [0x475638]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push ebx
push eax
call fcn.00405150
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
call fcn.00404670
push 1
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 8
call fcn.00404670
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00404670
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00404670
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00404670
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x47563c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x403302
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00453eb4
pop ecx
add eax, eax
lea ecx, [ebp - 0x24]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x20]
call fcn.004061af
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x20], eax
jne 0x4031f9
lea ecx, [ebp - 0x1c]
call fcn.004061e5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x1c], eax
jne 0x403050
mov esi, dword [ebp - 0x28]
push dword [ebp + 8]
add esi, 0x10
push esi
call fcn.0040725f
pop ecx
test al, al
pop ecx
jne 0x403376
push dword [ebp + 8]
call fcn.00453eb4
pop ecx
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.00404ed2
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00404670
cmp dword [ebp - 0x14], 0xffffffff
je 0x403397
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403397
push dword [ebp - 0x14]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4