Function at 0x442af0
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], 0x728092
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__wfopen]
mov dword [esp + 0x28], eax
call eax
test eax, eax
je 0x442e10
mov esi, eax
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.005dad00
mov dword [esp], esi
call fcn.005daa60
mov dword [esp + 0xc], 0
mov edi, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], esi
call fcn.005dad00
cmp edi, 9
jbe 0x442e40
lea eax, [edi + 1]
cmp eax, 0x3ffffffe
ja 0x442e74
add eax, eax
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call fcn.006eb360
mov edx, dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp + 0x14], eax
test edx, edx
je 0x442ba3
mov dword [esp], edx
call fcn.006eb310
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], 0x7280f1
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x442c70
mov dword [esp + 8], 2
mov dword [esp + 4], 0x7280f4
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x442df0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x7280f7
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x442d70
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 0x442c40
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 0x442e74
add eax, eax
mov dword [esp], eax
call fcn.006eb360
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 0x442c65
mov dword [esp], edx
mov byte [esp + 0x28], al
call fcn.006eb310
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], 0x7280fa
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
test eax, eax
mov ebp, eax
je 0x442e10
sub edi, 1
mov esi, ebx
jmp 0x442dbb
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 0x442da0
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 0x442c4f
mov eax, dword [esp + 0x50]
mov dword [esp + 4], str.ERROR_in_loadfile__:_failed__wfopen__S__n
mov dword [esp], 0x835180
mov dword [esp + 8], eax
call fcn.0041e920
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], 0x835180
mov dword [esp + 8], eax
call fcn.0041e920
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.006ebc70
nop
lea esi, [esi]