Function at 0x5af170
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf8b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp dword [eax + 0x10], edi
je 0x5af404
lea esi, [ebp - 0xc8]
call fcn.005af090
push 0x63a14c
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], edi
mov esi, 1
push ecx
mov dword [ebp - 0x18], esi
call fcn.0041bfc0
add esp, 0xc
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov ebx, 3
mov dword [ebp - 0x18], ebx
jb 0x5af1e3
mov eax, dword [eax]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x10]
push ecx
push eax
push edx
push edi
mov ecx, esi
call fcn.00404a60
test eax, eax
jne 0x5af257
lea eax, [ebp - 0x90]
push eax
call fcn.005af0c0
add esp, 4
push 0x63a154
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 2
push ecx
mov dword [ebp - 0x18], 7
call fcn.0041bfc0
add esp, 0xc
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov ebx, 0xf
mov dword [ebp - 0x18], ebx
jb 0x5af241
mov eax, dword [eax]
mov edx, dword [esi + 0x10]
push ecx
push eax
push edx
push edi
mov ecx, esi
call fcn.00404a60
mov byte [ebp - 0x11], 1
test eax, eax
jne 0x5af25b
mov byte [ebp - 0x11], 0
mov esi, 0x10
test bl, 8
je 0x5af287
and ebx, 0xfffffff7
cmp dword [ebp - 0x30], esi
jb 0x5af279
mov eax, dword [ebp - 0x44]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x44], 0
test bl, 4
je 0x5af2b4
and ebx, 0xfffffffb
cmp dword [ebp - 0x7c], esi
jb 0x5af2a3
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x90], 0
test bl, 2
je 0x5af2db
and ebx, 0xfffffffd
cmp dword [ebp - 0x60], esi
jb 0x5af2cd
mov edx, dword [ebp - 0x74]
push edx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], edi
mov byte [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x5af301
and ebx, 0xfffffffe
cmp dword [ebp - 0xb4], esi
jb 0x5af301
mov eax, dword [ebp - 0xc8]
push eax
call fcn.0052d217
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x5af386
lea ecx, [ebp - 0xc8]
push ecx
call fcn.005af0c0
add esp, 4
push str..pac
push eax
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 4], 4
call fcn.0041bfc0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.005af170
mov byte [ebp - 0x11], al
cmp dword [ebp - 0x30], esi
jb 0x5af350
mov eax, dword [ebp - 0x44]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0xb4], esi
jb 0x5af37c
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.0052d217
add esp, 4
cmp byte [ebp - 0x11], 0
jne 0x5afafe
mov dword [ebp - method.CFile.virtual_0], vtable.CFile.0
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x100], edi
lea esi, [ebp - 0x124]
mov dword [ebp - 4], 6
call fcn.005ac630
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0x10
jb 0x5af3c3
mov esi, edx
mov eax, dword [esi]
jmp 0x5af3c7
mov eax, edx
mov esi, edx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
jne 0x5af419
mov dword [ebp - 0x11c], edi
lea esi, [ebp - 0x124]
mov dword [ebp - method.CFile.virtual_0], vtable.CFile.0
call fcn.005ac630
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp - 0xe4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
add eax, edi
adc ecx, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], ecx
jb 0x5af46f
mov eax, dword [esi]
jmp 0x5af471
mov eax, esi
lea edx, [ebp - 0x128]
push edx
lea ecx, [ebp - 0x334]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0xc
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x124]
call fcn.005aca10
cmp byte [ebp - 0x50], 0x50
jne 0x5af3ef
cmp byte [ebp - 0x4f], 0x41
jne 0x5af3ef
cmp byte [ebp - 0x4e], 0x43
jne 0x5af3ef
mov eax, dword [ebp - 0x104]
add eax, 0xfffffffc
push 0
push eax
lea esi, [ebp - 0x124]
call fcn.005ac430
mov ecx, esi
call fcn.005acd10
mov edi, eax
push edi
call fcn.0051b9c2
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0x4c
add esp, 4
push ecx
mov dword [ebp - 0x24], eax
call fcn.0051b9c2
mov edx, dword [ebp - 0x104]
add esp, 4
sub edx, edi
sub edx, 4
push 0
push edx
mov dword [ebp - 0x28], eax
call fcn.005ac430
mov eax, dword [ebp - 0x24]
push edi
push eax
mov ecx, esi
call fcn.005aca10
mov esi, dword [ebp - 0x24]
xor eax, eax
test edi, edi
je 0x5af52d
mov cl, byte [eax + esi]
not cl
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x5af520
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
imul edx, edx, 0x4c
mov ecx, dword [ebp - 0x20]
push edi
push esi
push edx
push eax
mov eax, dword [ecx + 0x2c]
call fcn.0057f170
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
jbe 0x5afac9
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
add edx, 8
add esi, 0x44
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x54], esi
mov eax, 0xf
xor edi, edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x224], 0
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f8], edi
mov byte [ebp - 0x208], 0
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], edi
mov byte [ebp - 0x1ec], 0
lea eax, [ebp - 0x334]
mov byte [ebp - 4], 7
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af5b5
sub eax, edx
push eax
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x224]
call fcn.00405440
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
mov edx, dword [esi]
add esi, 0xffffffbc
mov dword [ebp - 0x1c8], eax
mov eax, esi
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 0x1bc], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5af617
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0xac]
call fcn.00405440
lea ecx, [ebp - 0xac]
push ecx
mov byte [ebp - 4], 8
call fcn.00405620
lea edx, [ebp - 0x224]
add esp, 4
push edx
call fcn.00405620
mov eax, dword [ebp - 0x48]
add esp, 4
cmp eax, 4
jne 0x5afa2f
lea edi, [ebp - 0xac]
lea eax, [ebp - 0x74]
call fcn.0041ca40
mov byte [ebp - 4], 9
push 3
mov edi, 0xf
push 0x63a168
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00405440
mov esi, 0x10
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x44]
or ebx, esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x30], esi
jae 0x5af6a8
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x64]
push ecx
push eax
push edx
push 0
lea ecx, [ebp - 0x74]
call fcn.00404a60
test eax, eax
je 0x5af857
push 3
push 0x63a16c
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
call fcn.00405440
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x90]
or ebx, 0x20
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x7c], esi
jae 0x5af704
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x64]
push ecx
push eax
push edx
push 0
lea ecx, [ebp - 0x74]
call fcn.00404a60
test eax, eax
je 0x5af857
push 0x63a170
lea ecx, [ebp - 0xc8]
call fcn.00405540
mov dword [ebp - 4], 0xc
mov ecx, dword [eax + 0x10]
or ebx, 0x40
mov dword [ebp - 0x18], ebx
cmp dword [eax + 0x14], esi
jb 0x5af746
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [ebp - 0x64]
push eax
push 0
lea ecx, [ebp - 0x74]
call fcn.00404a60
test eax, eax
je 0x5af857
push 0x63a174
lea ecx, [ebp - 0x17c]
call fcn.00405540
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xd
or ebx, 0x80
push ecx
mov dword [ebp - 0x18], ebx
call fcn.0040de80
add esp, 8
test al, al
jne 0x5af857
push 0x63a178
lea ecx, [ebp - 0x198]
call fcn.00405540
push eax
lea edx, [ebp - 0x74]
mov dword [ebp - 4], 0xe
or ebx, 0x100
push edx
mov dword [ebp - 0x18], ebx
call fcn.0040de80
add esp, 8
test al, al
jne 0x5af857
push 0x63a17c
lea ecx, [ebp - 0x144]
call fcn.00405540
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 4], edi
or ebx, 0x200
push eax
mov dword [ebp - 0x18], ebx
call fcn.0040de80
add esp, 8
test al, al
jne 0x5af857
push 0x63a180
lea ecx, [ebp - 0x1b4]
call fcn.00405540
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], esi
or ebx, 0x400
push ecx
mov dword [ebp - 0x18], ebx
call fcn.0040de80
add esp, 8
test al, al
jne 0x5af857
push 0x63a188
lea ecx, [ebp - 0x160]
call fcn.00405540
push eax
lea edx, [ebp - 0x74]
mov dword [ebp - 4], 0x11
or ebx, 0x800
push edx
mov dword [ebp - 0x18], ebx
call fcn.0040de80
add esp, 8
mov byte [ebp + 0xb], 0
test al, al
je 0x5af85b
mov byte [ebp + 0xb], 1
test ebx, 0x800
je 0x5af897
and ebx, 0xfffff7ff
cmp dword [ebp - 0x14c], esi
jb 0x5af880
mov eax, dword [ebp - 0x160]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
test ebx, 0x400
je 0x5af8d3
and ebx, 0xfffffbff
cmp dword [ebp - 0x1a0], esi
jb 0x5af8bc
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1b4], 0
test ebx, 0x200
je 0x5af90f
and ebx, 0xfffffdff
cmp dword [ebp - 0x130], esi
jb 0x5af8f8
mov edx, dword [ebp - 0x144]
push edx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
test ebx, 0x100
je 0x5af94b
and ebx, 0xfffffeff
cmp dword [ebp - 0x184], esi
jb 0x5af934
mov eax, dword [ebp - 0x198]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
test bl, bl
jns 0x5af983
and ebx, 0xffffff7f
cmp dword [ebp - 0x168], esi
jb 0x5af96c
mov ecx, dword [ebp - 0x17c]
push ecx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x17c], 0
test bl, 0x40
je 0x5af9b9
and ebx, 0xffffffbf
cmp dword [ebp - 0xb4], esi
jb 0x5af9a2
mov edx, dword [ebp - 0xc8]
push edx
call fcn.0052d217
add esp, 4
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xc8], 0
test bl, 0x20
je 0x5af9e6
and ebx, 0xffffffdf
cmp dword [ebp - 0x7c], esi
jb 0x5af9d5
mov eax, dword [ebp - 0x90]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov dword [ebp - 4], 9
test bl, 0x10
je 0x5afa06
and ebx, 0xffffffef
cmp dword [ebp - 0x30], esi
jb 0x5afa06
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0052d217
add esp, 4
xor edx, edx
cmp byte [ebp + 0xb], dl
mov byte [ebp - 4], 8
setne dl
dec edx
and edx, 3
mov dword [ebp - 0x1c0], edx
cmp dword [ebp - 0x60], esi
jb 0x5afa35
mov eax, dword [ebp - 0x74]
push eax
call fcn.0052d217
add esp, 4
jmp 0x5afa35
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x22c]
push ecx
lea esi, [ebp - 0xac]
call fcn.0041bd10
cmp dword [eax + 4], 0
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
jne 0x5afa6e
mov ecx, dword [ebp - 0x20]
mov eax, esi
push eax
call fcn.0041be80
lea esi, [eax + 0x1c]
lea edi, [ebp - 0x224]
call fcn.0041bca0
cmp dword [ebp - 0x98], 0x10
jb 0x5afa86
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0052d217
add esp, 4
lea esi, [ebp - 0x224]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 6
call fcn.0041bc40
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
inc eax
add esi, 0x4c
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
cmp eax, dword [ebp - 0x4c]
jb 0x5af568
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5afad9
push eax
call fcn.0052eb6c
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5afae9
push eax
call fcn.0052eb6c
add esp, 4
lea esi, [ebp - 0x124]
mov dword [ebp - method.CFile.virtual_0], vtable.CFile.0
call fcn.005ac630
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4