Function at 0x41f198
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x5e4db8
push edx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x60], ebx
call fcn.0055b7cc
mov esi, eax
mov dword [ebp - 0x5c], esi
pop ecx
pop ecx
test esi, esi
jne 0x41f1dc
push 0x5e1685
mov ecx, edi
call fcn.00403e67
jmp 0x41f3ca
push 2
push ebx
push ebx
push esi
call fcn.0055b7e1
push esi
call fcn.0055b918
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
call fcn.0055b7e1
push 0xc800
call fcn.0043179f
mov ebx, eax
add esp, 0x28
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jg 0x41f261
jl 0x41f223
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xfa000
ja 0x41f264
push esi
push 0xc800
push 1
push ebx
call fcn.0055bf2d
add esp, 0x10
mov dword [ebp - 0x48], eax
xor edx, edx
test eax, eax
jle 0x41f351
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, edi
jl 0x41f247
test edi, edi
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp - 0x4c]
jg 0x41f223
jmp 0x41f351
mov ecx, dword [ebp - 0x44]
push 0
push 0x12
pop edx
sub ecx, 0x19000
mov dword [ebp - 0x50], edx
push edx
sbb eax, 0
push eax
push ecx
call fcn.005619f0
push esi
push 0xc800
push 1
push ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 8], edx
call fcn.0055bf2d
add esp, 0x10
mov dword [ebp - 0x40], eax
xor edx, edx
test eax, eax
jle 0x41f2b1
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, edi
jl 0x41f2a3
mov dword [ebp - 0x3c], eax
xor eax, eax
mov edi, 0xc800
mov dword [ebp - 0x40], eax
push 0
push eax
push edi
push esi
call fcn.0055b7e1
push esi
push 0xc800
push 1
push ebx
call fcn.0055bf2d
add esp, 0x20
mov dword [ebp - 0x54], eax
xor edx, edx
test eax, eax
jle 0x41f2f6
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x54]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, esi
jl 0x41f2e5
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
add edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x40]
adc eax, dword [ebp - 8]
dec dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
jne 0x41f2bb
mov eax, dword [ebp - 0x44]
mov edi, 0xc800
mov ecx, dword [ebp - 0x48]
sub eax, edi
push 0
sbb ecx, 0
push ecx
push eax
push esi
call fcn.0055b7e1
push esi
push edi
push 1
push ebx
call fcn.0055bf2d
mov edi, dword [ebp - 0x4c]
add esp, 0x20
xor edx, edx
mov dword [ebp - 8], eax
test eax, eax
jle 0x41f351
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 8]
movzx ecx, byte [edx + ebx]
add eax, ecx
inc edx
cmp edx, edi
jl 0x41f340
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
push esi
call fcn.0055c045
push ebx
call fcn.004317a8
mov eax, dword [ebp - 0x44]
lea ebx, [ebp - 0x20]
add eax, 0x9d
imul eax, eax, 0xc
xor esi, esi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
movzx eax, byte [ebp + esi - 0xc]
push eax
push str._02x
push 3
push ebx
call fcn.00559f1c
add esp, 0x10
add ebx, 2
inc esi
cmp esi, 8
jl 0x41f378
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x10], bl
call fcn.00403e67
lea eax, [ebp - 0x38]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov ecx, edi
push eax
mov byte [edi], bl
call fcn.00403ed8
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00404102
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00559612
mov esp, ebp
pop ebp
ret