Function at 0x46c8b0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5230d2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c4]
mov edi, ecx
mov dword [esp + 0x18], edi
mov esi, edx
call fcn.00407c80
xor ebx, ebx
cmp byte [edi + 0x1c], bl
mov dword [edi + 0x18], ebx
jne 0x46c9e1
mov dword [esp + 0x1c], vtable.t_fileTextRead.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x4bc], ebx
call fcn.0046a650
mov eax, esi
lea edx, [esp + 0x30]
call fcn.0046a7f0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, ebp
mov byte [esp + 0x4c4], 2
call fcn.004789b0
mov byte [esp + 0x4bc], 0
cmp byte [esp + 0x14c], 0
mov bl, al
mov dword [esp + 0x30], vtable.t_str.0
jne 0x46c986
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
cmp eax, edx
je 0x46c986
push eax
call fcn.004fdda1
add esp, 4
test bl, bl
jne 0x46c9bc
mov ecx, ebp
call fcn.00470820
push 0x562aa8
push 0x551604
push eax
call fcn.0046adf0
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x46c9b5
push eax
call fcn.004fdda1
add esp, 4
xor al, al
jmp 0x46cbc4
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0046d1a0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46cbc2
push eax
call fcn.004fdda1
add esp, 4
jmp 0x46cbc2
lea edi, [esp + 0x154]
call fcn.004763d0
mov edi, vtable.t_fileRead.0
mov dword [esp + 0x154], edi
mov dword [esp + 0x4a0], 0x564334
mov dword [esp + 0x4a4], ebx
mov dword [esp + 0x4a8], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x4bc], 3
call fcn.0046a650
mov eax, esi
lea edx, [esp + 0x30]
call fcn.0046a7f0
lea ecx, [esp + 0x30]
push ecx
push ebp
lea ecx, [esp + 0x15c]
mov byte [esp + 0x4c4], 5
call fcn.004759b0
mov byte [esp + 0x4bc], 3
cmp byte [esp + 0x14c], bl
mov byte [esp + 0x17], al
mov dword [esp + 0x30], vtable.t_str.0
jne 0x46ca7d
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x3c]
cmp eax, edx
je 0x46ca7d
push eax
call fcn.004fdda1
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x46cacd
mov ecx, ebp
call fcn.00470820
push 0x562abc
push 0x551604
push eax
call fcn.0046adf0
mov dword [esp + 0x4c8], 0xffffffff
mov dword [esp + 0x160], edi
add esp, 0xc
lea ecx, [esp + 0x154]
mov dword [esp + 0x4a0], 0x5647bc
call fcn.00476480
xor al, al
jmp 0x46cbc4
mov ecx, dword [esp + 0x158]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46caf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x46caf7
xor edi, edi
lea edx, [edi + 1]
push edx
call fcn.004fdc99
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x46cb3b
mov ecx, ebp
call fcn.00470820
push 0x562ad0
push 0x551604
push eax
call fcn.0046adf0
mov dword [esp + 0x4c8], 0xffffffff
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
jmp 0x46caac
push edi
push esi
push ebp
lea ecx, [esp + 0x4ac]
call fcn.00475a10
test al, al
jne 0x46cb75
push 0x562af4
mov ecx, ebp
call fcn.00401000
lea ecx, [esp + 0x154]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.00475990
xor al, al
jmp 0x46cbc4
lea ecx, [esp + 0x154]
mov byte [edi + esi], bl
call fcn.00476760
mov eax, dword [esp + 0x18]
push esi
push eax
mov eax, edi
call fcn.0046cbf0
push esi
mov byte [esp + 0x1b], al
call fcn.004fdda1
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x46cbab
push 0x562aa8
jmp 0x46cb53
lea ecx, [esp + 0x154]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.00475990
mov al, 1
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.004fe05a
add esp, 0x4ac
ret 4