Function at 0x444c00
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], 0x73c052
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wfopen]
mov dword [esp + 0x28], eax
call eax
test eax, eax
je 0x444d60
mov ebx, eax
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.005e9f50
mov dword [esp], ebx
call fcn.005e9c30
mov dword [esp + 0xc], 0
mov esi, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.005e9f50
cmp esi, 9
jbe 0x444d90
lea eax, [esi + 1]
cmp eax, 0x3ffffffe
ja 0x444f2c
add eax, eax
mov dword [esp], eax
call fcn.006fec20
mov edi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], edi
test eax, eax
je 0x444caf
mov dword [esp], eax
call fcn.006febd0
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov dword [esp], edi
call sub.msvcrt.dll_fread
cmp word [edi], 0xbbef
je 0x444dc4
cmp word [edi], 0xfeff
je 0x444f12
cmp word [edi], 0xfffe
je 0x444ec0
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0x73c0b2
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
test eax, eax
mov ebx, eax
je 0x444d60
sub esi, 1
mov ebp, edi
jmp 0x444d31
mov dword [esp], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
call sub.msvcrt.dll_fgetws
mov dword [esp], ebp
call sub.msvcrt.dll_wcslen
lea ebp, [ebp + eax*2]
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
je 0x444d15
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
xor eax, eax
mov word [edi + esi*2], ax
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [esp + 0x50]
mov dword [esp + 4], str.ERROR_in_loadfile__:_failed__wfopen__S__n
mov dword [esp], 0x849160
mov dword [esp + 8], eax
call fcn.0041f010
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.ERROR_in_loadfile__:__S_has_only__d_bytes_n
mov dword [esp], 0x849160
mov dword [esp + 8], eax
call fcn.0041f010
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
sub esi, 3
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
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 0x444f2c
add eax, eax
mov dword [esp], eax
call fcn.006fec20
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0x14], edx
mov dword [esp], 0xfde9
mov eax, dword [esp + 0x28]
call eax
sub esp, 0x18
mov esi, eax
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x2c]
mov eax, 1
test edx, edx
mov word [ecx + esi*2], bx
mov dword [ebp + 0x14], ecx
je 0x444d7e
mov dword [esp], edx
mov byte [esp + 0x28], al
call fcn.006febd0
movzx eax, byte [esp + 0x28]
jmp 0x444d7e
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_fread
lea edx, [esi - 1]
mov eax, edi
lea esi, [esi]
movzx ecx, byte [eax + 1]
sub edx, 1
add eax, 2
mov byte [eax - 2], cl
cmp edx, 0xffffffff
jne 0x444ee0
mov dword [esp], ebx
shr esi, 1
call sub.msvcrt.dll_fclose
xor edx, edx
mov eax, 1
mov word [edi + esi*2 - 2], dx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_fread
jmp 0x444ef2
call fcn.006ff430
nop
lea esi, [esi]
lea edi, [edi]