Function at 0x4b0360
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53910c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4a8], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call fcn.004b0140
cmp byte [ebx + 0x1c], 0
jne 0x4b04ef
call fcn.004b6390
test al, al
je 0x4b03cd
push str.ReadConfig
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.004ba2c0
mov ecx, eax
call fcn.004ba640
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4c0], fcn.004eec3a
mov dword [ebp - 0x4bc], fcn.004ee932
mov dword [ebp - 0x4b8], fcn.004e4a56
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0x1fff8
mov dword [ebp - method.allocator_unsigned_char__class_TAllocDefault_.virtual_0], vtable.t_heap.0
mov dword [ebp - 0x4ac], 0
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x13c]
push 0
push edi
call fcn.004b2790
push dword [ebp + 0x10]
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 1
push ecx
push eax
push esi
lea ecx, [ebp - 0x4d0]
call fcn.004b6570
mov byte [ebp - 4], 0
cmp byte [ebp - 0x20], 0
mov byte [ebp - 0x49d], al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4b0497
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
cmp ecx, eax
je 0x4b0497
push ecx
call fcn.004e4a56
add esp, 4
call fcn.004b6290
cmp byte [ebp - 0x49d], 0
jne 0x4b04d1
mov ecx, esi
call fcn.004af720
push 0x562264
push 0x561dd0
push eax
call fcn.004ad730
add esp, 0xc
lea ecx, [ebp - 0x4d0]
call fcn.004b64e0
xor al, al
jmp 0x4b06e9
lea eax, [ebp - 0x4d0]
mov ecx, ebx
push eax
call fcn.004b0d80
lea ecx, [ebp - 0x4d0]
call fcn.004b64e0
jmp 0x4b06e7
push ecx
lea ecx, [ebp - 0x49c]
call fcn.004b5b30
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x148], 0x563e7c
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
sub esp, 0x10
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x13c]
push 0
push edi
call fcn.004b2790
push 0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 3
push eax
push esi
lea ecx, [ebp - 0x49c]
call fcn.004b5c90
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
jne 0x4b0562
xor bl, bl
jmp 0x4b059c
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 0
push eax
push dword [ebp - 0x498]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b058e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b058e
xor edi, edi
mov dword [ebp - 0x144], edi
mov bl, 1
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4b05c9
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
cmp eax, ecx
je 0x4b05c9
push eax
call fcn.004e4a56
add esp, 4
test bl, bl
jne 0x4b05ec
mov ecx, esi
call fcn.004af720
push 0x562278
push 0x561dd0
push eax
call fcn.004ad730
add esp, 0xc
jmp 0x4b06b9
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a4], 0
push eax
push dword [ebp - 0x498]
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b0618
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b0618
xor edi, edi
lea eax, [edi + 1]
push eax
call fcn.004eec3a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x4a4], ebx
test ebx, ebx
jne 0x4b064c
mov ecx, esi
call fcn.004af720
push 0x5622d0
push 0x561dd0
push eax
call fcn.004ad730
add esp, 0xc
jmp 0x4b06b9
push edi
push ebx
push esi
lea ecx, [ebp - 0x148]
call fcn.004b6df0
test al, al
jne 0x4b067a
mov ecx, esi
call fcn.004af720
push 0x5622f4
push 0x561dd0
push eax
call fcn.004ad730
add esp, 0xc
jmp 0x4b06b9
lea ecx, [ebp - 0x49c]
mov byte [edi + ebx], 0
call fcn.004b5ed0
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4a8]
push edi
push ebx
call fcn.004b0710
push dword [ebp - 0x4a4]
mov bl, al
call fcn.004e4a56
add esp, 4
test bl, bl
jne 0x4b06dc
push 0x562264
mov ecx, esi
call fcn.0040f580
lea ecx, [ebp - 0x49c]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.004b5bd0
xor al, al
jmp 0x4b06e9
lea ecx, [ebp - 0x49c]
call fcn.004b6dd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret 0xc