Function at 0x4af3a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52601c
mov eax, dword fs:[0]
push eax
sub esp, 0x5b0
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x5a8], eax
push ebx
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x5c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea esi, [esp + 0x25c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x12], bl
call fcn.00417b60
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x5a8], 0x55e6d8
mov dword [esp + 0x5ac], ebx
mov dword [esp + 0x5b0], ebx
mov dword [esp + 0x5c8], ebx
mov ecx, 4
lea edx, [esp + 0x148]
mov byte [esp + 0x258], 1
mov word [esp + 0x256], cx
mov dword [esp + 0x144], edx
mov dword [esp + 0x148], ebx
lea ecx, [esp + 0x20]
call fcn.004114e0
mov eax, edi
lea edx, [esp + 0x20]
call fcn.00411710
mov eax, dword [esp + 0x18]
push ebx
push eax
lea eax, [esp + 0x28]
mov ecx, esi
mov byte [esp + 0x5d0], 3
call fcn.00417c90
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
jne 0x4af490
xor al, al
jmp 0x4af4bf
mov edx, dword [esp + 0x260]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4af4b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4af4b6
xor edi, edi
mov dword [esp + 0x5ac], edi
mov al, 1
cmp al, bl
mov byte [esp + 0x5c8], 1
sete byte [esp + 0x13]
mov dword [esp + 0x20], vtable.t_str.0
cmp byte [esp + 0x13c], bl
jne 0x4af4f4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x4af4f4
push eax
call fcn.004faac5
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x4af574
mov eax, dword [esp + 0x260]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4af520
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4af520
xor edi, edi
mov ecx, edi
lea esi, [esp + 0x144]
call fcn.00405480
lea eax, [esp + 0x148]
cmp byte [esp + 0x258], bl
jne 0x4af545
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x18]
push edi
lea esi, [eax + 4]
push esi
push ecx
lea ecx, [esp + 0x5b4]
call fcn.004183f0
test al, al
je 0x4af574
mov ecx, dword [esp + 0x1c]
push edi
mov edx, esi
call fcn.004ae900
test eax, eax
jl 0x4af574
mov byte [esp + 0x12], 1
lea ecx, [esp + 0x25c]
call fcn.00417eb0
cmp byte [esp + 0x12], bl
jne 0x4af5f8
mov ecx, dword [esp + 0x18]
call fcn.00409990
push 0x56c3c8
push 0x55d15c
mov edx, eax
call fcn.00411e80
add esp, 8
cmp byte [esp + 0x258], bl
jne 0x4af5c7
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x4af5c7
push eax
call fcn.004faac5
add esp, 4
mov dword [esp + 0x5c8], 0xffffffff
lea ecx, [esp + 0x25c]
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x5a8], 0x55e85c
call fcn.00417bd0
xor al, al
jmp 0x4af64b
cmp byte [esp + 0x258], bl
jne 0x4af61c
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x4af61c
push eax
call fcn.004faac5
add esp, 4
mov dword [esp + 0x5c8], 0xffffffff
lea ecx, [esp + 0x25c]
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x5a8], 0x55e85c
call fcn.00417bd0
mov al, 1
mov ecx, dword [esp + 0x5c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.004fa259
mov esp, ebp
pop ebp
ret 0xc