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

Disassembly:
push 0xa8
mov eax, 0x42baeb
call fcn.0041599c
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.00403003
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push 0x436c7c
push eax
call fcn.00413785
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40326e
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.00402eeb
cmp dword [ebp - 0x34], esi
jne 0x40321c
lea eax, [ebp - 0x8c]
push eax
call fcn.00402c67
push eax
lea ecx, [ebp - 0x44]
call fcn.00401acd
lea ecx, [ebp - 0x8c]
call fcn.004012e4
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00401a84
call fcn.00402f6c
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x40322e
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0040157a
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push 0x436c80
push eax
call fcn.00413785
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.004143df
push esi
call fcn.00413f89
add esp, 0x1c
lea ecx, [ebp - 0x44]
jmp 0x403410
push 2
pop eax
push eax
push ebx
push esi
mov dword [ebp - 0xa8], eax
call fcn.00413e9e
add esp, 0xc
push esi
call fcn.00413da7
pop ecx
push esi
mov dword [ebp - 0xac], eax
call fcn.004140c1
pop ecx
mov ecx, dword [ebp - 0xac]
inc ecx
push ecx
call fcn.00413265
pop ecx
mov dword [ebp - 0xb4], eax
push esi
test eax, eax
jne 0x4032bd
call fcn.00413f89
pop ecx
or ebx, 0xffffffff
jmp 0x403415
push dword [ebp - 0xac]
push 1
push eax
call fcn.004139a2
mov ecx, dword [ebp - 0xb4]
add esp, 0x10
mov byte [ecx + eax], bl
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004012b5
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.00402eeb
cmp dword [ebp - 0x1c], 0
jne 0x4033a8
cmp dword [ebp - 0x64], 0
jne 0x403323
lea eax, [ebp - 0xa4]
push eax
call fcn.00402c67
mov ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 0xa8], eax
jmp 0x40334b
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.0040157a
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401acd
mov eax, dword [ebp - 0xa8]
test al, 2
je 0x403378
and eax, 0xfffffffd
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xa8], eax
call fcn.004012e4
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 4], 3
test al, 1
je 0x40338e
lea ecx, [ebp - 0xa4]
call fcn.004012e4
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.004143df
add esp, 0x10
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x4033ba
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0040157a
cmp dword [ebp - 0x64], 0
je 0x4033df
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.00401c01
test eax, eax
je 0x4033f2
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00401a84
call fcn.00402f6c
push esi
call fcn.00413f89
pop ecx
push dword [ebp - 0xb4]
call fcn.004131ef
pop ecx
lea ecx, [ebp - 0x74]
call fcn.004012e4
lea ecx, [ebp - 0x2c]
call fcn.004012e4
lea ecx, [ebp - 0x5c]
call fcn.004012e4
mov eax, ebx
call fcn.0041595a
ret 4