Function at 0x402f6a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xa8
mov eax, 0x42b42e
call fcn.004151ec
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], ebx
call fcn.00402e85
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push 0x435c00
push eax
call fcn.00413340
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x403063
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00402d6d
cmp dword [ebp - 0x34], esi
jne 0x403011
lea eax, [ebp - 0x8c]
push eax
call fcn.00402a4c
push eax
lea ecx, [ebp - 0x44]
call fcn.004023ea
lea ecx, [ebp - 0x8c]
call fcn.00401c01
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.004023a1
call fcn.00402dee
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x403023
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00401e97
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push 0x435c04
push eax
call fcn.00413340
cmp dword [ebp - 0x30], 0x10
mov esi, eax
push esi
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push 1
push ecx
call fcn.00413760
push esi
call fcn.00413d19
add esp, 0x1c
lea ecx, [ebp - 0x44]
jmp 0x403205
push 2
pop eax
push eax
push ebx
push esi
mov dword [ebp - 0xa8], eax
call fcn.00413c2e
add esp, 0xc
push esi
call fcn.00413b37
pop ecx
push esi
mov dword [ebp - 0xac], eax
call fcn.004131bd
pop ecx
mov ecx, dword [ebp - 0xac]
inc ecx
push ecx
call fcn.00412dd5
pop ecx
mov dword [ebp - 0xb4], eax
push esi
test eax, eax
jne 0x4030b2
call fcn.00413d19
pop ecx
or ebx, 0xffffffff
jmp 0x40320a
push dword [ebp - 0xac]
push 1
push eax
call fcn.0041355d
mov ecx, dword [ebp - 0xb4]
add esp, 0x10
mov byte [ecx + eax], bl
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401bd2
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x74], bl
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 3
call fcn.00402d6d
cmp dword [ebp - 0x1c], 0
jne 0x40319d
cmp dword [ebp - 0x64], 0
jne 0x403118
lea eax, [ebp - 0xa4]
push eax
call fcn.00402a4c
mov ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 0xa8], eax
jmp 0x403140
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x8c], bl
call fcn.00401e97
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004023ea
mov eax, dword [ebp - 0xa8]
test al, 2
je 0x40316d
and eax, 0xfffffffd
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xa8], eax
call fcn.00401c01
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 4], 3
test al, 1
je 0x403183
lea ecx, [ebp - 0xa4]
call fcn.00401c01
cmp dword [ebp - 0x18], 0x10
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
call fcn.00413760
add esp, 0x10
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x4031af
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00401e97
cmp dword [ebp - 0x64], 0
je 0x4031d4
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0040251e
test eax, eax
je 0x4031e7
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.004023a1
call fcn.00402dee
push esi
call fcn.00413d19
pop ecx
push dword [ebp - 0xb4]
call fcn.00412d5f
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00401c01
lea ecx, [ebp - 0x2c]
call fcn.00401c01
lea ecx, [ebp - 0x5c]
call fcn.00401c01
mov eax, ebx
call fcn.004151aa
ret 4