Function at 0x46d7d0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4f3681
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x288], eax
push ebp
push esi
push edi
mov eax, dword [0x545628]
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.004d2d51
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
je 0x46d859
call fcn.0041c530
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 0x46d85b
xor esi, esi
push edi
push ebx
mov ecx, esi
mov ebp, esi
call fcn.0041f530
test al, al
jne 0x46d9ad
xor ebp, ebp
cmp esi, ebp
je 0x46d87e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push 0x358
call fcn.004d2d51
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x46d8be
call fcn.0041c530
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 0x46d8c0
xor esi, esi
lea ecx, [esp + 0x24]
mov ebp, esi
call fcn.00410c10
mov eax, str..sgbak
lea edx, [esp + 0x24]
call fcn.00410e40
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
push edx
mov ecx, edi
mov dword [esp + 0x2ac], 1
call fcn.004163e0
push eax
push ebx
mov ecx, esi
mov byte [esp + 0x2ac], 2
call fcn.0041f530
test al, al
sete byte [esp + 0x13]
cmp byte [esp + 0x264], 0
mov edi, vtable.t_str.0
mov dword [esp + 0x148], edi
jne 0x46d941
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x154]
cmp eax, ecx
je 0x46d941
push eax
call fcn.004d1d15
add esp, 4
mov dword [esp + 0x2a4], 0xffffffff
cmp byte [esp + 0x140], 0
mov dword [esp + 0x24], edi
jne 0x46d96f
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x46d96f
push eax
call fcn.004d1d15
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46d9a6
test esi, esi
je 0x46d984
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax]
push 1
call edx
mov ecx, ebx
call fcn.0040fa50
push 0x52b5a0
push 0x52a3bc
mov edx, eax
call fcn.004114a0
add esp, 8
xor al, al
jmp 0x46dc46
mov ecx, ebx
call fcn.0040faa0
cmp dword [esp + 0x2b0], 1
jne 0x46da27
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 0x46d9e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46d9e3
xor eax, eax
jmp 0x46d9e5
mov eax, esi
mov esi, dword [esp + 0x1c]
push eax
mov dword [esi + 8], eax
call fcn.004d1df2
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 0x46dc39
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
jmp 0x46d984
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 0x46da51
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46da51
xor edi, edi
mov dword [esp + 0x18], 0
mov ecx, ebp
cmp edi, 4
jae 0x46da7a
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
call edx
mov ecx, ebx
call fcn.0040fa50
push 0x530b28
jmp 0x46d990
sub edi, 4
mov eax, ebx
call fcn.0041f610
test al, al
jne 0x46da92
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x46d97e
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 0x46dacf
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x530b44
mov ecx, ebx
call fcn.00401490
xor al, al
jmp 0x46dc46
mov eax, dword [esp + 0x18]
cmp edi, eax
jae 0x46daf5
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x530b64
mov ecx, ebx
call fcn.00401490
xor al, al
jmp 0x46dc46
push eax
sub edi, eax
call fcn.004d1df2
mov dword [esp + 0x18], eax
add esp, 4
mov eax, ebx
mov ecx, ebp
call fcn.0041f610
test al, al
jne 0x46db2f
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
push 0x52b5a0
mov ecx, ebx
call fcn.00401490
xor al, al
jmp 0x46dc46
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 0x46db59
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
xor al, al
jmp 0x46dc46
push 0x2c
lea ecx, [esp + 0x270]
push 0
push ecx
call fcn.004d6770
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.0046fad0
test al, al
jne 0x46dba8
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x530b84
mov ecx, ebx
call fcn.00401490
xor al, al
jmp 0x46dc46
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004d1d15
mov esi, dword [esp + 0x20]
push edi
mov dword [esi + 8], edi
call fcn.004d1df2
mov dword [esi + 4], eax
add esp, 8
xor edi, edi
mov eax, ebx
mov ecx, ebp
call fcn.0041f610
test al, al
jne 0x46dbef
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
push 0x52b5a0
mov ecx, ebx
call fcn.00401490
xor al, al
jmp 0x46dc46
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 0x46dc1c
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
xor al, al
jmp 0x46dc46
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
mov edi, ebx
lea edx, [esp + 0x270]
call fcn.0046fb40
test al, al
je 0x46db8a
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.004d158d
add esp, 0x298
ret 8