Function at 0x7022d920
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x7030e768
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x58]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x68], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x7022d9de
call fcn.7020df50
cmp eax, esi
jne 0x7022dce4
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x30], edi
cmp dword [esp + 0x24], esi
jne 0x7022dcd9
cmp edi, 0x100000
jae 0x7022dcd9
push edi
call fcn.702df932
mov ebx, eax
add esp, 4
mov esi, edi
mov ecx, ebx
lea edx, [esp + 0x14]
mov dword [esp + 0x58], ebx
call fcn.7020df10
test eax, eax
je 0x7022d9e4
push ebx
call fcn.702e1ea6
add esp, 4
test ebp, ebp
jmp 0x7022dcdb
mov dword [esp + 0x14], eax
jmp 0x7022d97e
cmp dword [ebx], 1
jne 0x7022dc2f
cmp dword [ebx + 4], 0xc
jne 0x7022dc2f
cmp dword [ebx + 8], 0x3336306a
jne 0x7022dc2f
cmp dword [ebx + 0xc], 1
lea esi, [ebx + 0xc]
jne 0x7022dc2f
cmp dword [esi + 8], 0x33363073
jne 0x7022dc2f
mov edx, dword [esi + 4]
lea ebp, [esi + 4]
add edi, ebx
lea eax, [edx + esi + 0xc]
mov dword [esp + 0x18], edi
cmp eax, edi
jae 0x7022dc2f
add esi, 0xc
mov edi, edx
mov dword [esp + 0x34], esi
call fcn.70215e90
add esi, dword [ebp]
cmp dword [esi], 2
jne 0x7022dc2f
cmp dword [esi + 8], 0x33363073
jne 0x7022dc2f
mov ecx, dword [esi + 4]
lea edi, [esi + 4]
xor edx, edx
mov eax, ecx
mov ebp, 0x14
div ebp
test edx, edx
jne 0x7022dc2f
lea ecx, [ecx + esi + 0xc]
cmp ecx, dword [esp + 0x18]
jae 0x7022dc2f
mov eax, 0xcccccccd
mul dword [edi]
mov ecx, edx
shr ecx, 4
add esi, 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], ecx
test ecx, ecx
jbe 0x7022dab0
lea eax, [esi + 8]
mov dword [eax], 0
add eax, 0x14
sub ecx, 1
jne 0x7022daa2
add esi, dword [edi]
cmp dword [esi], 3
jne 0x7022dc2f
cmp dword [esi + 8], 0x33363073
jne 0x7022dc2f
mov ecx, dword [esi + 4]
lea edi, [esi + 4]
xor edx, edx
mov eax, ecx
mov ebp, 0x34
div ebp
mov dword [esp + 0x20], edi
test edx, edx
jne 0x7022dc2f
lea edx, [ecx + esi + 0xc]
cmp edx, dword [esp + 0x18]
jae 0x7022dc2f
mov eax, 0x4ec4ec4f
mul ecx
mov ebx, edx
shr ebx, 4
add esi, 0xc
xor ebp, ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], ebx
test ebx, ebx
jbe 0x7022db4a
mov eax, esi
xor ecx, ecx
cmp dword [eax], ecx
lea edx, [eax + 0xc]
mov dword [edx - 4], 0
jle 0x7022db42
mov edi, dword [edx]
test edi, edi
je 0x7022dc2b
cmp edi, dword [esp + 0x1c]
jg 0x7022dc2b
inc ecx
add edx, 4
cmp ecx, dword [eax]
jl 0x7022db22
mov edi, dword [esp + 0x20]
inc ebp
add eax, 0x34
cmp ebp, ebx
jb 0x7022db12
add esi, dword [edi]
cmp dword [esi], 4
jne 0x7022dc2b
cmp dword [esi + 8], 0x33363073
jne 0x7022dc2b
mov eax, dword [esi + 4]
lea edi, [esi + 4]
lea ecx, [eax + esi + 0xc]
cmp ecx, dword [esp + 0x18]
jae 0x7022dc2b
mov ebx, dword [edi]
add esi, 0xc
movzx edx, word [esi + 0x42]
lea eax, [esi + 0x42]
shl edx, 4
add edx, 0x44
cmp edx, ebx
mov dword [esp + 0x40], esi
mov ecx, esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], ebx
jg 0x7022dc2b
cmp byte [ecx + 0x40], 0
je 0x7022dc0a
movzx ebp, word [eax]
xor edi, edi
test ebp, ebp
jbe 0x7022dc0a
add ecx, 0x4c
mov eax, dword [ecx - 8]
cmp eax, 1
jne 0x7022dbf8
mov eax, dword [ecx - 4]
cmp eax, 0x1000000
jae 0x7022dbd0
test eax, eax
je 0x7022dc2b
cmp eax, dword [esp + 0x1c]
jmp 0x7022dbdb
add eax, 0xff000000
je 0x7022dc2b
cmp eax, dword [esp + 0x28]
ja 0x7022dc2b
mov eax, dword [ecx]
test eax, eax
je 0x7022dc2b
cmp eax, ebp
jge 0x7022dc2b
mov eax, dword [ecx + 4]
test eax, eax
je 0x7022dc2b
cmp eax, ebp
jge 0x7022dc2b
mov ebx, dword [esp + 0x2c]
jmp 0x7022dc02
cmp eax, 2
je 0x7022dc02
cmp eax, 3
jne 0x7022dc2b
inc edi
add ecx, 0x10
cmp edi, ebp
jb 0x7022dbb4
inc dword [esp + 0x20]
cmp edx, ebx
je 0x7022dc4a
lea ecx, [edx + esi]
movzx edi, word [ecx + 0x42]
lea eax, [ecx + 0x42]
shl edi, 4
lea edx, [edx + edi + 0x44]
cmp edx, ebx
jle 0x7022dba2
mov ebx, dword [esp + 0x58]
push ebx
call fcn.702e1ea6
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x7022dce4
push eax
jmp 0x7022dcde
add esi, ebx
cmp dword [esi], 5
jne 0x7022dc2b
cmp dword [esi + 8], 0x33363073
jne 0x7022dc2b
cmp dword [esi + 4], 0
jne 0x7022dc2b
add esi, 0xc
cmp esi, dword [esp + 0x18]
jne 0x7022dc2b
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 4]
test eax, eax
je 0x7022dc84
push eax
call fcn.702e1ea6
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], ecx
test eax, eax
je 0x7022dcd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x7022dce6
cmp ebp, esi
je 0x7022dce4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8