Function at 0x41be20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0x6c00
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041a3d0
add esp, 4
mov dword [ebp - 0x40], eax
push 0x42f098
mov eax, dword [ebp + 8]
push eax
call fcn.0042045e
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41be7c
mov eax, dword [ebp + 8]
push eax
push 0x42f968
push 0x44
call fcn.004093aa
add esp, 0xc
call fcn.004173be
xor eax, eax
jmp 0x41c13c
push 0x4324a8
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT20.dll_strcpy
add esp, 8
dec byte [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT20.dll_strlen
add esp, 4
mov dword [ebp - 0x48], eax
push 2
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_ftell]
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov dword [0x42d100], 0xffffffff
mov dword [ebp - 0x1c], 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT20.dll_fread]
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41bf26
push 0x42f988
call fcn.004081d7
add esp, 4
xor eax, eax
sub eax, dword [ebp - 0x48]
neg eax
sub dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], 0
jmp 0x41bf45
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x34], eax
jge 0x41bf7a
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.MSVCRT20.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x41bf72
jmp 0x41bf7a
inc dword [ebp - 0x44]
jmp 0x41bf42
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x34], eax
jge 0x41bf8b
jmp 0x41bf9c
mov eax, dword [ebp - 0x28]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0x1c], eax
jmp 0x41bee2
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push 4
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT20.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x41bfe6
push 0x42f988
call fcn.004081d7
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
push 4
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT20.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x41c011
push 0x42f988
call fcn.004081d7
add esp, 4
mov dword [0x42d100], 0xffffffff
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x1c], 0
jmp 0x41c03b
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x1c], eax
jae 0x41c08a
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fgetc]
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41c06e
push 0x42f988
call fcn.004081d7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x42d100]
push eax
call fcn.00418e45
add esp, 8
mov dword [0x42d100], eax
jmp 0x41c038
add dword [ebp - 0x1c], 8
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jae 0x41c0f3
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fgetc]
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41c0d4
push 0x42f988
call fcn.004081d7
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x42d100]
push eax
call fcn.00418e45
add esp, 8
mov dword [0x42d100], eax
inc dword [ebp - 0x1c]
jmp 0x41c0a1
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT20.dll_fclose]
add esp, 4
mov eax, dword [0x42d100]
cmp dword [ebp - 0x3c], eax
jne 0x41c135
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], eax
jne 0x41c135
mov eax, 1
jmp 0x41c137
xor eax, eax
jmp 0x41c13c
pop edi
pop esi
pop ebx
leave
ret