Function at 0x443240
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0x727022
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wfopen]
mov dword [esp + 0x28], eax
call eax
test eax, eax
je 0x443560
mov esi, eax
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.005d94b0
mov dword [esp], esi
call fcn.005d9210
mov dword [esp + 0xc], 0
mov edi, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], esi
call fcn.005d94b0
cmp edi, 9
jbe 0x443590
lea eax, [edi + 1]
cmp eax, 0x3ffffffe
ja 0x4435c4
add eax, eax
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call fcn.006e98b0
mov edx, dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp + 0x14], eax
test edx, edx
je 0x4432f3
mov dword [esp], edx
call fcn.006e9860
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp + 8], 2
mov dword [esp + 4], 0x727081
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4433c0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x727084
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x443540
mov dword [esp + 8], 2
mov dword [esp + 4], 0x727087
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4434c0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_fread
xor eax, eax
lea esi, [esi]
movzx edx, byte [ebx + eax*2 + 1]
mov byte [ebx + eax*2], dl
add eax, 1
cmp edi, eax
jne 0x443390
mov dword [esp], esi
shr edi, 1
call sub.msvcrt.dll_fclose
xor ecx, ecx
mov eax, 1
mov word [ebx + edi*2 - 2], cx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
sub edi, 3
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 0x28], eax
call eax
mov edx, eax
lea eax, [eax + 1]
sub esp, 0x18
mov dword [esp + 0x2c], edx
cmp eax, 0x3ffffffe
ja 0x4435c4
add eax, eax
mov dword [esp], eax
call fcn.006e98b0
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0
mov dword [esp + 0x14], edx
mov dword [esp], 0xfde9
call dword [esp + 0x28]
sub esp, 0x18
mov ebx, eax
mov dword [esp], esi
xor esi, esi
call sub.msvcrt.dll_fclose
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x2c]
mov eax, 1
test edx, edx
mov word [ecx + ebx*2], si
mov dword [ebp + 0x14], ecx
je 0x4433b5
mov dword [esp], edx
mov byte [esp + 0x28], al
call fcn.006e9860
movzx eax, byte [esp + 0x28]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0x72708a
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
test eax, eax
mov ebp, eax
je 0x443560
sub edi, 1
mov esi, ebx
jmp 0x44350b
mov dword [esp], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
call sub.msvcrt.dll_fgetws
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
lea esi, [esi + eax*2]
mov dword [esp], ebp
call sub.msvcrt.dll_feof
test eax, eax
je 0x4434f0
mov dword [esp], ebp
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x2c]
xor edx, edx
mov word [ebx + eax - 4], dx
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_fread
jmp 0x44339f
mov eax, dword [esp + 0x50]
mov dword [esp + 4], str.ERROR_in_loadfile__:_failed__wfopen__S__n
mov dword [esp], 0x833180
mov dword [esp + 8], eax
call fcn.0041e8c0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], edi
mov dword [esp + 4], str.ERROR_in_loadfile__:__S_has_only__d_bytes_n
mov dword [esp], 0x833180
mov dword [esp + 8], eax
call fcn.0041e8c0
mov dword [esp], esi
call sub.msvcrt.dll_fclose
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
call fcn.006ea1c0
nop
lea esi, [esi]