Function at 0x4b2470
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x521401
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2ac]
push 0x358
mov dword [esp + 0x20], eax
mov esi, ecx
mov ebx, edx
call fcn.004fde48
mov edi, eax
xor ebp, ebp
add esp, 4
cmp edi, ebp
je 0x4b24fc
call fcn.004763d0
mov dword [edi + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
mov dword [edi], vtable.t_fileRead.0
mov dword [edi + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [edi + 0x350], ebp
mov dword [edi + 0x354], ebp
jmp 0x4b24fe
xor edi, edi
push ebx
push esi
mov ecx, edi
mov ebp, edi
call fcn.004759b0
test al, al
jne 0x4b264d
xor ebp, ebp
cmp edi, ebp
je 0x4b2521
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
push 0x358
call fcn.004fde48
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4b2561
call fcn.004763d0
mov dword [edi + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
mov dword [edi], vtable.t_fileRead.0
mov dword [edi + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [edi + 0x350], ebp
mov dword [edi + 0x354], ebp
jmp 0x4b2563
xor edi, edi
lea ecx, [esp + 0x24]
mov ebp, edi
call fcn.0046a650
mov eax, str..sgbak
lea edx, [esp + 0x24]
call fcn.0046a7f0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
push edx
mov ecx, ebx
mov dword [esp + 0x2ac], 1
call fcn.0046e1d0
push eax
push esi
mov ecx, edi
mov byte [esp + 0x2ac], 2
call fcn.004759b0
test al, al
sete bl
cmp byte [esp + 0x264], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4b25e1
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x154]
cmp eax, ecx
je 0x4b25e1
push eax
call fcn.004fdda1
add esp, 4
mov dword [esp + 0x2a4], 0xffffffff
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], vtable.t_str.0
jne 0x4b2613
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x4b2613
push eax
call fcn.004fdda1
add esp, 4
test bl, bl
je 0x4b2646
test edi, edi
je 0x4b2625
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
call fcn.00470820
push 0x5554d8
push 0x551604
push eax
call fcn.0046adf0
add esp, 0xc
xor al, al
jmp 0x4b28cc
mov ecx, esi
call fcn.00470870
cmp dword [esp + 0x2b0], 1
jne 0x4b26c7
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b2683
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b2683
xor eax, eax
jmp 0x4b2685
mov eax, edi
mov edi, dword [esp + 0x1c]
push eax
mov dword [edi + 8], eax
call fcn.004fdc99
mov dword [edi + 4], eax
mov edi, dword [edi + 8]
mov edx, dword [ebp + 0x34c]
add esp, 4
push edi
lea ecx, [ebp + 0x34c]
push eax
mov eax, dword [edx + 4]
push esi
call eax
test al, al
jne 0x4b28bf
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
jmp 0x4b2625
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b26f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b26f1
xor ebx, ebx
cmp ebx, 4
mov dword [esp + 0x18], 0
mov ecx, ebp
jae 0x4b271a
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
call fcn.00470820
push 0x56ec48
jmp 0x4b2631
sub ebx, 4
mov edi, ebx
mov eax, esi
call fcn.00475a90
test al, al
jne 0x4b2734
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x4b261f
mov eax, dword [ebp + 0x34c]
mov eax, dword [eax + 4]
push 4
lea ecx, [ebp + 0x34c]
lea edx, [esp + 0x1c]
push edx
push esi
call eax
test al, al
jne 0x4b276f
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x56ec64
mov ecx, esi
call fcn.00401000
xor al, al
jmp 0x4b28cc
mov eax, dword [esp + 0x18]
cmp ebx, eax
jae 0x4b2795
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x56ec84
mov ecx, esi
call fcn.00401000
xor al, al
jmp 0x4b28cc
push eax
sub ebx, eax
call fcn.004fdc99
mov dword [esp + 0x18], eax
add esp, 4
mov edi, ebx
mov eax, esi
mov ecx, ebp
call fcn.00475a90
test al, al
jne 0x4b27d1
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x5554d8
mov ecx, esi
call fcn.00401000
xor al, al
jmp 0x4b28cc
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 0x34c]
mov edx, dword [edx + 4]
push eax
lea ecx, [ebp + 0x34c]
push edi
push esi
call edx
test al, al
jne 0x4b2803
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
xor al, al
jmp 0x4b28cc
push 0x2c
lea eax, [esp + 0x270]
push 0
push eax
call fcn.005002f0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ebx
push ecx
push edi
lea edi, [esp + 0x278]
call fcn.004b2900
test al, al
jne 0x4b284c
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x56eca4
mov ecx, esi
call fcn.00401000
xor al, al
jmp 0x4b28cc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004fdda1
mov edi, dword [esp + 0x20]
push ebx
mov dword [edi + 8], ebx
call fcn.004fdc99
mov dword [edi + 4], eax
add esp, 8
xor edi, edi
mov eax, esi
mov ecx, ebp
call fcn.00475a90
test al, al
je 0x4b27b3
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov edx, dword [ebp + 0x34c]
mov edx, dword [edx + 4]
push eax
mov eax, dword [edi + 4]
lea ecx, [ebp + 0x34c]
push eax
push esi
call edx
test al, al
je 0x4b27f1
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
mov edi, esi
lea edx, [esp + 0x270]
call fcn.004b2990
test al, al
je 0x4b282e
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
mov al, 1
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.004fe05a
add esp, 0x294
ret 8