Function at 0x4402a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
mov word [ebp - 0x22c], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
push ebx
push esi
mov dword [ebp - 0x18], 1
stosw word es:[edi], ax
call fcn.004a8e00
add esp, 8
test eax, eax
push esi
jne 0x440311
mov ecx, dword [0x73ff2c]
lea eax, [ebp - 0x22c]
push 0x103
push eax
push ecx
call fcn.004a8e10
jmp 0x440328
push 0x4ed128
lea edx, [ebp - 0x22c]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004a8e00
add esp, 8
test eax, eax
je 0x44051c
push ebx
push 0x8000080
push 3
push ebx
push 1
lea ecx, [ebp - 0x22c]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x440394
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [ebp - 0x20], esi
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x4404ea
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push 0
push eax
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov ah, byte [esi + 1]
mov al, byte [esi]
cmp ax, 0xfeff
jne 0x440472
lea eax, [esi + 2]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4403f5
xor edi, edi
mov dword [ebp + 0xc], edi
jmp 0x440401
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp + 0xc], eax
mov edi, eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x440411
cmp edi, dword [eax - 4]
jle 0x440428
mov ecx, ebx
call fcn.00406610
push edi
mov ecx, ebx
call fcn.00406580
test eax, eax
je 0x4404ce
mov esi, dword [ebp - 0x1c]
lea eax, [edi + edi]
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x20]
push esi
mov dword [ecx - 8], edx
mov ecx, dword [ebx]
mov word [eax + ecx], 0
call fcn.004d4cc1
mov edx, dword [ebp - 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x44051f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x44048b
cmp edi, dword [eax - 4]
jle 0x44049e
mov ecx, ebx
call fcn.00406610
push edi
mov ecx, ebx
call fcn.00406580
test eax, eax
je 0x4404ce
lea eax, [edi + 1]
mov edi, dword [ebx]
test eax, eax
jne 0x4404ab
test edi, edi
jne 0x4404c5
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4404c5
mov word [edi + eax*2 - 2], 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0040f9d0
push esi
call fcn.004d4cc1
mov edx, dword [ebp - 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x44051f
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x44051f
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x4405bc
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4405bc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4405bc
push eax
lea eax, [ebp + 0x10]
push 0x4f1610
push eax
push ecx
mov dword [ebp + 0x10], 0
call fcn.004afb10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44056a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x44056c
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x440579
cmp edi, dword [eax - 4]
jle 0x44058c
mov ecx, ebx
call fcn.00406610
push edi
mov ecx, ebx
call fcn.00406580
test eax, eax
je 0x4405bc
lea eax, [edi + 1]
mov edi, dword [ebx]
test eax, eax
jne 0x440599
test edi, edi
jne 0x4405b3
push eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4405b3
mov word [edi + eax*2 - 2], 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0040f9d0
mov ecx, dword [ebx]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4405cc
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret