Function at 0x43109c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x4310c2
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0043418a
xor al, al
jmp 0x431273
mov ecx, dword [ebp - 0x10]
call fcn.00431801
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0042c30e
and dword [ebp - 0x18], 0
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [ebp - 0x18], eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x18], 0
jg 0x431123
push 0
push 0
push 0
push 0xc
mov ecx, dword [ebp - 0x10]
call fcn.0043418a
xor al, al
jmp 0x431273
mov eax, dword [ebp - 0x18]
inc eax
push eax
call dword [sym.imp.mfc140u.dll_operator_2]
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], 0
push dword [ebp + 8]
push 1
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x43119e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_operator]
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x43117a
and dword [ebp - 0x2c], 0
jmp 0x431187
mov dword [ebp - 8], 0x8123
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0043418a
xor al, al
jmp 0x431273
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0xd
mov byte [ebp - 2], 0xa
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
test eax, eax
je 0x431212
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
cmp eax, 0xd
jne 0x4311f8
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xa
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
cmp eax, 0xa
jne 0x4311f6
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x431210
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x4311bb
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
push dword [ebp + 0xc]
push 0
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
call dword [eax + 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_operator]
pop ecx
cmp dword [ebp - 0x20], 0
jne 0x431247
and dword [ebp - 0x30], 0
jmp 0x431254
mov dword [ebp - 8], 0x8123
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x10]
call fcn.0042c8ba
movzx eax, al
test eax, eax
jne 0x43126c
mov dword [ebp - 0x24], 1
jmp 0x431270
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
leave
ret 8