Function at 0x413f4e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor edx, edx
push ecx
push dword [ebp + 0xc]
mov dword [ecx], edx
lea ecx, [ebp - 8]
push ecx
mov esi, ebx
mov dword [ebp - 8], edx
mov dword [eax], edx
call fcn.004147e6
test eax, eax
je 0x413f83
mov eax, dword [ebp - 8]
jmp 0x41421a
cmp dword [ebx + 0x500c], 0
push edi
je 0x413fc7
mov eax, dword [ebx + 0x7014]
lea edi, [ebx + 0x7010]
sub eax, dword [edi]
lea esi, [ebx + 0x5010]
push eax
push dword [edi]
push esi
call fcn.0041d011
mov eax, dword [ebx + 0x7014]
sub eax, dword [edi]
add esp, 0xc
sar eax, 1
add eax, 0x2808
lea eax, [ebx + eax*2]
mov dword [ebx + 0x7014], eax
mov dword [edi], esi
lea edi, [ebx + 8]
mov eax, dword [edi]
sub eax, dword [ebx + 4]
lea esi, [ebx + 0xc]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x18], edi
push esi
call fcn.0041d011
mov eax, ebx
sub eax, dword [ebx + 4]
xor edx, edx
add eax, 0xc
add dword [edi], eax
add esp, 0xc
mov dword [ebx + 4], esi
push edx
cmp dword [ebx + 0x500c], edx
je 0x414168
mov ecx, dword [ebx + 0x7014]
mov eax, dword [ebx + 0x7010]
sub eax, ecx
lea edx, [ebp - 4]
push edx
mov esi, 0x2000
add eax, esi
push eax
push ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414219
mov ecx, dword [0x4293d8]
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
mov edx, dword [ebp - 4]
xor ecx, ecx
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetACP]
lea eax, [edi + 8]
push eax
shr edx, 1
push edx
push dword [ebx + 0x7014]
mov dword [ebp - 0x10], edx
push ecx
mov dword [ebp - 0x14], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x1000
lea ecx, [edi + 0x2008]
mov edi, dword [ebp - 0x14]
push ecx
push eax
push edi
push 0
mov dword [ebp - 0xc], ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x10], 0
mov esi, dword [ebx + 0x7014]
mov ecx, eax
mov dword [ebp - 0x14], ecx
je 0x41415d
mov ebx, dword [ebp - 0x18]
test ecx, ecx
je 0x41415a
mov ax, word [esi]
mov ecx, dword [ebp - 0xc]
cmp ax, word [ecx]
jne 0x4140d4
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4140ca
cmp byte [edi + 1], 0
je 0x4140ca
mov al, byte [edi]
mov ecx, dword [ebx]
mov byte [ecx], al
inc dword [ebx]
inc edi
mov ecx, dword [ebx]
mov al, byte [edi]
mov byte [ecx], al
inc dword [ebx]
jmp 0x41413c
mov eax, dword [ebx]
mov byte [eax], 0x78
inc dword [ebx]
movzx eax, word [esi]
mov ecx, dword [ebx]
shr eax, 0xc
mov al, byte [eax + 0x4020e4]
mov byte [ecx], al
inc dword [ebx]
movzx eax, byte [esi + 1]
mov ecx, dword [ebx]
and eax, 0xf
mov al, byte [eax + 0x4020e4]
mov byte [ecx], al
inc dword [ebx]
movzx eax, word [esi]
mov ecx, dword [ebx]
shr eax, 4
and eax, 0xf
mov al, byte [eax + 0x4020e4]
mov byte [ecx], al
inc dword [ebx]
movzx eax, word [esi]
mov ecx, dword [ebx]
and eax, 0xf
mov al, byte [eax + 0x4020e4]
mov byte [ecx], al
inc dword [ebx]
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x41413c
cmp byte [edi + 1], 0
je 0x41413c
inc edi
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc edi
add esi, 2
dec eax
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x41409a
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x7014], esi
lea edi, [ebx + 8]
jmp 0x4141b7
sub esi, dword [edi]
lea eax, [ebp - 4]
push eax
add esi, 0x5000
push esi
push dword [edi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4141b2
mov eax, dword [ebp - 4]
test eax, eax
je 0x4141b5
dec eax
push eax
push dword [edi]
call fcn.00414787
test eax, eax
jne 0x4141b2
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
push 1
dec ecx
push 0
mov dword [ebp - 4], ecx
push 0xffffffffffffffff
mov byte [ecx + eax], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
add dword [edi], eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
mov esi, ebx
push eax
mov eax, dword [ebp + 0x14]
call fcn.004147e6
test eax, eax
je 0x4141d4
mov eax, dword [ebp - 8]
jmp 0x414219
cmp dword [ebx + 0x500c], 0
je 0x4141ff
mov eax, dword [ebx + 0x7014]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ecx, [ebx + 0x7010]
sub eax, dword [ecx]
sar eax, 1
mov dword [edx], eax
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [edx]
add eax, eax
add dword [ecx], eax
mov eax, dword [edi]
lea edx, [ebx + 4]
sub eax, dword [edx]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [edx]
add eax, ecx
mov dword [edx], eax
mov eax, dword [ebx]
neg eax
sbb eax, eax
and eax, ecx
pop edi
pop esi
pop ebx
leave
ret 0x10