Function at 0x4599a0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4bc61b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0x368], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x384]
mov dword fs:[0], eax
mov eax, dword [esp + 0x398]
mov ebp, dword [esp + 0x394]
mov ebx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
xor edi, edi
mov dword [esp + 0x1c], ebp
cmp eax, edi
je 0x459a0c
push eax
call fcn.00498f5b
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea esi, [esp + 0x24]
call fcn.00457460
mov ecx, dword [esp + 0x18]
push edi
push ecx
push ebp
mov edx, esi
push edx
mov dword [esp + 0x39c], edi
call fcn.004435c0
test al, al
je 0x459adc
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x459a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x459a5c
xor esi, esi
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x37c], esi
mov dword [esp + 0x28], edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x459a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x459a86
xor esi, esi
lea ecx, [esi + 4]
push ecx
call fcn.00499078
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x459b0a
mov ebx, dword [esp + 0x18]
cmp byte [ebx + 0x11c], 0
je 0x459aaa
add ebx, 0xc
jmp 0x459aad
mov ebx, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
call fcn.00447720
push 0x4e52dc
mov esi, eax
push 0x4d65ac
mov edx, esi
call fcn.00448ff0
add ebx, 4
push ebx
push 0x4d65ac
mov edx, esi
call fcn.00448ff0
add esp, 0x10
mov dword [esp + 0x38c], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.004434f0
xor al, al
jmp 0x459be4
mov edi, dword [esp + 0x1c]
push esi
push ebp
push edi
lea ecx, [esp + 0x37c]
call fcn.00457580
test al, al
jne 0x459b55
mov ebx, dword [esp + 0x18]
cmp byte [ebx + 0x11c], al
je 0x459b41
mov ecx, edi
add ebx, 0xc
call fcn.00447720
push 0x4e2970
jmp 0x459abb
mov ebx, dword [ebx + 8]
mov ecx, edi
call fcn.00447720
push 0x4e2970
jmp 0x459abb
lea edi, [esp + 0x24]
call fcn.004437f0
mov ecx, dword [esp + 0x39c]
mov edi, dword [esp + 0x1c]
push ecx
push esi
push ebp
push edi
xor edx, edx
xor eax, eax
push ebx
mov word [esi + ebp + 2], dx
mov word [esi + ebp], ax
call fcn.00459d70
test al, al
jne 0x459bbb
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x11c], 0
lea esi, [eax + 0xc]
jne 0x459b97
mov esi, dword [eax + 8]
push 0x4e2970
mov ecx, edi
call fcn.004032e0
add esi, 4
push esi
push 0x4d65ac
mov edx, eax
call fcn.00448ff0
add esp, 8
jmp 0x459adc
mov dword [esp + 0x38c], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.004434f0
mov al, 1
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x368]
xor ecx, esp
call fcn.00497c58
add esp, 0x37c
ret 0xc