Function at 0x4a1950
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x526161
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x288], eax
push ebp
push esi
push edi
mov eax, dword [0x581500]
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 edi, ecx
call fcn.004faf1d
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
je 0x4a19d9
call fcn.00417b60
mov dword [esi + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
mov dword [esi], vtable.t_fileRead.0
mov dword [esi + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esi + 0x350], ebp
mov dword [esi + 0x354], ebp
jmp 0x4a19db
xor esi, esi
push edi
push ebx
mov ecx, esi
mov ebp, esi
call fcn.00418390
test al, al
jne 0x4a1b2d
xor ebp, ebp
cmp esi, ebp
je 0x4a19fe
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004faf1d
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4a1a3e
call fcn.00417b60
mov dword [esi + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
mov dword [esi], vtable.t_fileRead.0
mov dword [esi + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esi + 0x350], ebp
mov dword [esi + 0x354], ebp
jmp 0x4a1a40
xor esi, esi
lea ecx, [esp + 0x24]
mov ebp, esi
call fcn.004114e0
mov eax, 0x56a52c
lea edx, [esp + 0x24]
call fcn.00411710
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
push edx
mov ecx, edi
mov dword [esp + 0x2ac], 1
call fcn.0040e9a0
push eax
push ebx
mov ecx, esi
mov byte [esp + 0x2ac], 2
call fcn.00418390
test al, al
sete byte [esp + 0x13]
cmp byte [esp + 0x264], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x148], edi
jne 0x4a1ac1
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x154]
cmp eax, ecx
je 0x4a1ac1
push eax
call fcn.004faac5
add esp, 4
mov dword [esp + 0x2a4], 0xffffffff
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], edi
jne 0x4a1aef
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x4a1aef
push eax
call fcn.004faac5
add esp, 4
cmp byte [esp + 0x13], 0
je 0x4a1b26
test esi, esi
je 0x4a1b04
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax]
push 1
call edx
mov ecx, ebx
call fcn.00409990
push 0x55d390
push 0x55d15c
mov edx, eax
call fcn.00411e80
add esp, 8
xor al, al
jmp 0x4a1dc6
mov ecx, ebx
call fcn.004099e0
cmp dword [esp + 0x2b0], 1
jne 0x4a1ba7
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 esi, eax
cmp esi, 0xffffffff
jne 0x4a1b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a1b63
xor eax, eax
jmp 0x4a1b65
mov eax, esi
mov esi, dword [esp + 0x1c]
push eax
mov dword [esi + 8], eax
call fcn.004faba2
mov dword [esi + 4], eax
mov esi, dword [esi + 8]
mov edx, dword [ebp + 0x34c]
add esp, 4
push esi
lea ecx, [ebp + 0x34c]
push eax
mov eax, dword [edx + 4]
push ebx
call eax
test al, al
jne 0x4a1db9
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
jmp 0x4a1b04
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 edi, eax
cmp edi, 0xffffffff
jne 0x4a1bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a1bd1
xor edi, edi
mov dword [esp + 0x18], 0
mov ecx, ebp
cmp edi, 4
jae 0x4a1bfa
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
call edx
mov ecx, ebx
call fcn.00409990
push 0x56a5fc
jmp 0x4a1b10
sub edi, 4
mov eax, ebx
call fcn.00418470
test al, al
jne 0x4a1c12
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x4a1afe
mov eax, dword [ebp + 0x34c]
mov edx, dword [eax + 4]
push 4
lea esi, [ebp + 0x34c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov ecx, esi
call edx
test al, al
jne 0x4a1c4f
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x56a618
mov ecx, ebx
call fcn.00402ea0
xor al, al
jmp 0x4a1dc6
mov eax, dword [esp + 0x18]
cmp edi, eax
jae 0x4a1c75
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x56a638
mov ecx, ebx
call fcn.00402ea0
xor al, al
jmp 0x4a1dc6
push eax
sub edi, eax
call fcn.004faba2
mov dword [esp + 0x18], eax
add esp, 4
mov eax, ebx
mov ecx, ebp
call fcn.00418470
test al, al
jne 0x4a1caf
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x55d390
mov ecx, ebx
call fcn.00402ea0
xor al, al
jmp 0x4a1dc6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 4]
push ecx
push edx
push ebx
mov ecx, esi
call eax
test al, al
jne 0x4a1cd9
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
xor al, al
jmp 0x4a1dc6
push 0x2c
lea ecx, [esp + 0x270]
push 0
push ecx
call fcn.004ff6c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0xc
push edi
push edx
push eax
mov eax, ebx
lea esi, [esp + 0x278]
call fcn.004a4ac0
test al, al
jne 0x4a1d28
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x56a658
mov ecx, ebx
call fcn.00402ea0
xor al, al
jmp 0x4a1dc6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004faac5
mov esi, dword [esp + 0x20]
push edi
mov dword [esi + 8], edi
call fcn.004faba2
mov dword [esi + 4], eax
add esp, 8
xor edi, edi
mov eax, ebx
mov ecx, ebp
call fcn.00418470
test al, al
jne 0x4a1d6f
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x55d390
mov ecx, ebx
call fcn.00402ea0
xor al, al
jmp 0x4a1dc6
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x34c]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x34c]
push eax
push ebx
call edx
test al, al
jne 0x4a1d9c
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
xor al, al
jmp 0x4a1dc6
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
mov edi, ebx
lea edx, [esp + 0x270]
call fcn.004a4b30
test al, al
je 0x4a1d0a
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
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004fa259
add esp, 0x298
ret 8