Function at 0x5ae750
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ceef7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x68], vtable.CFile.0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], esi
mov ebx, dword [edi + 0x60]
cmp ebx, esi
je 0x5ae7ee
mov eax, dword [edi + 0x5c]
lea esi, [ebp - 0x68]
mov dword [ebp - 0x10], eax
call fcn.005ac630
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
test eax, eax
jne 0x5ae7a3
mov eax, ecx
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
cmp eax, ecx
jne 0x5ae7c3
mov dword [ebp - 0x1c], ecx
jmp 0x5ae7c8
add eax, ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
xor esi, esi
mov eax, dword [edi + 0x54]
push esi
push eax
lea esi, [ebp - 0x68]
call fcn.005ac430
mov eax, dword [edi + 0x64]
cmp eax, 5
ja case.0x5ae7e7.4
jmp dword [eax*4 + 0x5ae9a0]
cmp dword [edi + 0x10], esi
je 0x5ae863
lea esi, [ebp - 0x68]
call fcn.005ac630
cmp dword [edi + 0x14], 0x10
jb 0x5ae805
mov eax, dword [edi]
jmp 0x5ae807
mov eax, edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x5ae82d
mov dword [ebp - 0x60], esi
jmp 0x5ae87a
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
add eax, esi
adc ecx, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x5ae7cc
lea edx, [edi + 0x1c]
lea eax, [edi + 0x38]
push edx
lea ecx, [ebp - 0x68]
call fcn.005ac6e0
test al, al
jne 0x5ae7ce
lea esi, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.CFile.0
call fcn.005ac630
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x58]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push ecx
push eax
jmp 0x5ae975
mov ecx, dword [edi + 0x5c]
push ecx
call fcn.0051b9c2
mov edx, dword [edi + 0x5c]
add esp, 4
mov esi, eax
push edx
push esi
lea ecx, [ebp - 0x68]
call fcn.005aca10
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ecx + 0x28]
call fcn.0057f320
test esi, esi
je case.0x5ae7e7.4
push esi
call fcn.0052eb6c
add esp, 4
jmp case.0x5ae7e7.4
mov edx, dword [edi + 0x5c]
push edx
call fcn.0051b9c2
mov esi, eax
mov eax, dword [edi + 0x5c]
add esp, 4
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.005aca10
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x58]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [eax]
push esi
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
push ecx
call fcn.0057f170
jmp 0x5ae8e1
mov eax, dword [edi + 0x5c]
push eax
call fcn.0051b9c2
mov ecx, dword [edi + 0x5c]
add esp, 4
push ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x68]
call fcn.005aca10
mov edx, dword [edi + 0x58]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
mov dword [ebp + 8], edx
mov edx, dword [ecx]
mov ecx, dword [edi + 0x5c]
push eax
push edx
mov eax, esi
call fcn.004345a0
add esp, 8
jmp 0x5ae8e1
mov eax, dword [edi + 0x58]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.005aca10
lea esi, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.CFile.0
call fcn.005ac630
mov ecx, dword [ebp - 0xc]
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8