Function at 0x4b14b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502915
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push eax
mov byte [ebp - 0x19], 0
movlpd qword [ebp - 0x24], xmm0
call fcn.004ad530
add esp, 8
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [eax + 0x20]
mov eax, dword [eax]
movups xmmword [ebp - 0x64], xmm0
test al, al
je 0x4b171e
shr eax, 0x18
test al, al
je 0x4b1674
push 0x5379b4
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004ae310
add esp, 0xc
test al, al
je 0x4b171e
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x20]
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4b158a
push 0x5b6918
mov dword [ebp - 0x30], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x2c], str.GetFileSize
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x30]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x3b7
call fcn.004a4b70
add esp, 0x18
cmp dword [ebp - 0x14], 0
ja 0x4b15d2
mov eax, dword [ebp - 0x18]
jb 0x4b159a
cmp eax, 0xffffffff
ja 0x4b15d2
push eax
push edi
call fcn.00424db0
add esp, 8
test al, al
je 0x4b1656
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x20]
call fcn.004b1320
add esp, 0xc
test eax, eax
je 0x4b1656
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x4b1659
push esi
lea ecx, [ebp - 0x6c]
call fcn.00404200
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404150
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x3c]
push eax
push str.path
call fcn.004a4430
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.00404db0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404db0
push str.filesize_too_large_for_single_read
push 0xffffffffffffffff
push 1
sub esp, 0xc
mov dword [ebp - 0x30], str.S:KBT_third_partykbtkbt_common.cpp
mov eax, esp
mov dword [ebp - 0x2c], str.ReadEntireFile
movq xmm0, qword [ebp - 0x30]
movq qword [eax], xmm0
mov dword [eax + 8], 0x419
call fcn.004a4b70
add esp, 0x18
mov al, byte [ebp - 0x19]
cmp byte [ebp - 0x24], 0
je 0x4b1721
lea eax, [ebp - 0x20]
push eax
call fcn.004c3010
add esp, 4
jmp 0x4b171e
mov ecx, esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1690
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00401720
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404150
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x6c]
push eax
push str.path
call fcn.004a4430
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.00404db0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404db0
push str.not_regular_file
push 0xffffffffffffffff
push 1
sub esp, 0xc
mov dword [ebp - 0x30], str.S:KBT_third_partykbtkbt_common.cpp
mov eax, esp
mov dword [ebp - 0x2c], str.ReadEntireFile
movq xmm0, qword [ebp - 0x30]
movq qword [eax], xmm0
mov dword [eax + 8], 0x421
call fcn.004a4b70
add esp, 0x18
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret