Function at 0x480fa0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50feb1
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x288], eax
push ebp
push esi
push edi
mov eax, dword [0x56957c]
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.004ee78a
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
je 0x481029
call fcn.00425230
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 0x48102b
xor esi, esi
push edi
push ebx
mov ecx, esi
mov ebp, esi
call fcn.00427790
test al, al
jne 0x48117d
xor ebp, ebp
cmp esi, ebp
je 0x48104e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004ee78a
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x48108e
call fcn.00425230
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 0x481090
xor esi, esi
lea ecx, [esp + 0x24]
mov ebp, esi
call fcn.004174b0
mov eax, str..sgbak
lea edx, [esp + 0x24]
call fcn.00417710
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
push edx
mov ecx, edi
mov dword [esp + 0x2ac], 1
call fcn.0041e3b0
push eax
push ebx
mov ecx, esi
mov byte [esp + 0x2ac], 2
call fcn.00427790
test al, al
sete byte [esp + 0x13]
cmp byte [esp + 0x264], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x148], edi
jne 0x481111
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x154]
cmp eax, ecx
je 0x481111
push eax
call fcn.004ed7b6
add esp, 4
mov dword [esp + 0x2a4], 0xffffffff
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], edi
jne 0x48113f
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x48113f
push eax
call fcn.004ed7b6
add esp, 4
cmp byte [esp + 0x13], 0
je 0x481176
test esi, esi
je 0x481154
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax]
push 1
call edx
mov ecx, ebx
call fcn.00416430
push 0x54abe4
push 0x549858
mov edx, eax
call fcn.00417ed0
add esp, 8
xor al, al
jmp 0x481416
mov ecx, ebx
call fcn.00416480
cmp dword [esp + 0x2b0], 1
jne 0x4811f7
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 0x4811b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4811b3
xor eax, eax
jmp 0x4811b5
mov eax, esi
mov esi, dword [esp + 0x1c]
push eax
mov dword [esi + 8], eax
call fcn.004ed893
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 0x481409
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
jmp 0x481154
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 0x481221
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x481221
xor edi, edi
mov dword [esp + 0x18], 0
mov ecx, ebp
cmp edi, 4
jae 0x48124a
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
call edx
mov ecx, ebx
call fcn.00416430
push 0x5515f0
jmp 0x481160
sub edi, 4
mov eax, ebx
call fcn.00427870
test al, al
jne 0x481262
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x48114e
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 0x48129f
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x55160c
mov ecx, ebx
call fcn.004014b0
xor al, al
jmp 0x481416
mov eax, dword [esp + 0x18]
cmp edi, eax
jae 0x4812c5
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x55162c
mov ecx, ebx
call fcn.004014b0
xor al, al
jmp 0x481416
push eax
sub edi, eax
call fcn.004ed893
mov dword [esp + 0x18], eax
add esp, 4
mov eax, ebx
mov ecx, ebp
call fcn.00427870
test al, al
jne 0x4812ff
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x54abe4
mov ecx, ebx
call fcn.004014b0
xor al, al
jmp 0x481416
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 0x481329
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
xor al, al
jmp 0x481416
push 0x2c
lea ecx, [esp + 0x270]
push 0
push ecx
call fcn.004f2770
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.00483470
test al, al
jne 0x481378
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x55164c
mov ecx, ebx
call fcn.004014b0
xor al, al
jmp 0x481416
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ed7b6
mov esi, dword [esp + 0x20]
push edi
mov dword [esi + 8], edi
call fcn.004ed893
mov dword [esi + 4], eax
add esp, 8
xor edi, edi
mov eax, ebx
mov ecx, ebp
call fcn.00427870
test al, al
jne 0x4813bf
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x54abe4
mov ecx, ebx
call fcn.004014b0
xor al, al
jmp 0x481416
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 0x4813ec
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
xor al, al
jmp 0x481416
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
mov edi, ebx
lea edx, [esp + 0x270]
call fcn.004834e0
test al, al
je 0x48135a
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.004ecddb
add esp, 0x298
ret 8