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

Disassembly:
push 0xffffffffffffffff
push 0x64e088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], di
mov eax, str._s_tvlda.pdb
mov dword [esp + 0x44], edi
test eax, eax
je 0x54ba70
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x54ba70
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov word [esp + 0x2c], di
call fcn.00401f20
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.00401070
lea ecx, [esp + 0x30]
call fcn.004027c0
push edi
push str._s_tvlda.pdb
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 2
call fcn.004027e0
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebp, [eax + edi + 2]
lea ebx, [ebp + ebp]
push ebx
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x18], edi
je 0x54ba4e
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.006099de
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 1
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 0
call fcn.00401070
mov ecx, dword [esp + 0x18]
xor edi, edi
cmp ecx, edi
jne 0x54ba78
lea ecx, [esp + 0x1c]
push edi
push edi
push 4
push edi
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x4c], ebx
jne 0x54baaa
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
call fcn.00401070
xor eax, eax
jmp 0x54bbc7
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x54bae6
test edi, edi
jne 0x54bae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x54bae6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebp
call fcn.00401070
xor eax, eax
jmp 0x54bbc7
mov eax, dword [esp + 0x10]
push 1
push 0
push 0
push eax
call fcn.0060c730
add ebp, eax
adc edi, edx
mov ecx, ebp
or ecx, edi
je 0x54bbaa
push 0
push 0xc
push edi
push ebp
call fcn.0060bae0
mov ebx, eax
mov eax, dword [esi + 8]
cmp ebx, eax
jl 0x54bb73
mov eax, dword [esi + 0xc]
push eax
call fcn.00622af4
lea eax, [ebx + 0x1f4]
mov dword [esi + 8], eax
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.00622acb
mov edi, eax
mov eax, dword [esi + 8]
mov dword [esi + 0xc], edi
add esp, 8
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x54bb73
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x54bbc7
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x54bba3
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x54bbc7
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.00401070
mov eax, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4