Function at 0x48d300
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x565300]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], esi
cmp dword [eax + 0x10], 0
je 0x48d338
call fcn.0048d6a0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d684
mov edi, dword [ebx + 4]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48d368
cmp dword [edi + 4], 0
je 0x48d361
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x10], 0
push 0x52dda8
push esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x48d684
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call esi
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [esp + 0x14], eax
push 0
push 0
push dword [esp + 0x14]
call esi
mov esi, dword [esp + 0x20]
add esp, 0xc
test esi, esi
jle 0x48d426
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48d3e5
cmp dword [edi + 4], 0
je 0x48d3de
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x10], 0
push esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], esi
mov dword [edi + 8], 0
mov dword [edi + 4], 1
test eax, eax
je 0x48d426
push dword [esp + 0xc]
push 1
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [edi + 0x10], 0
je 0x48d684
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push esi
push 0x531f3c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
test esi, esi
je 0x48d497
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x48d497
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x30]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d657
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x60]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x48d657
lea eax, [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push edi
call ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48d657
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x34]
jne 0x48d657
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x30]
jne 0x48d657
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x44]
jne 0x48d657
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x40]
jne 0x48d657
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx + 8]
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [ebx]
push dword [esi + 4]
push ebx
call fcn.0049c550
lea eax, [esp + 0x48]
mov dword [esi + 4], esi
push 0x52dda8
mov dword [esi], esi
mov dword [esi + 8], esi
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
test esi, esi
je 0x48d657
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__filelength]
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], edi
push esi
push 1
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor bl, bl
cmp dword [esp + 0x1c], 0x78646972
jne 0x48d648
cmp dword [esp + 0x20], 0x8000
jb 0x48d5c5
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push esi
call eax
add esp, 4
jmp 0x48d657
lea eax, [edi - 8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x48d648
mov ebx, dword [esp + 0x10]
push esi
push 1
add ebx, 0xfffffff8
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea edx, [edi + ebx]
mov ecx, edi
xor edi, edi
mov dword [esp + 0x20], edx
add esp, 0x10
cmp dword [esp + 0x20], edi
jle 0x48d634
mov ebx, dword [esp + 0x14]
lea esi, [ecx + 0x12]
add esi, dword [ecx + 0xc]
cmp esi, edx
ja 0x48d630
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.0049b7c0
mov edx, dword [esp + 0x10]
inc edi
mov ecx, esi
cmp edi, dword [esp + 0x20]
jl 0x48d606
mov esi, dword [esp + 0xc]
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp edi, dword [esp + 0x20]
sete bl
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push esi
call eax
add esp, 4
test bl, bl
jne 0x48d66b
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.0048d850
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x254]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 8