Function at 0x106a813
Capabilities:
Get file size

Disassembly:
mov eax, 0x1099f77
call fcn.01077478
sub esp, 0x30
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push esi
push edi
mov esi, ecx
je 0x106a848
test byte [eax + 0x1c], 1
je 0x106a848
push 0x1007714
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov ax, word [esi + 0x7c]
and dword [ebp - 0x18], 0
and dword [ebp - 0x24], 0
mov word [esi + 0xa8], ax
mov eax, dword [esi + 0x80]
mov ecx, dword [eax - 0xc]
push ebx
mov dword [esi + 0xac], eax
lea eax, [esi + 0x98]
push eax
push 0xc
mov word [esi + 0xaa], cx
lea edi, [esi + 0xa0]
push edi
mov ecx, esi
call fcn.01069927
lea ebx, [esi + 0x1d8]
mov ecx, ebx
call fcn.0104bc7a
test eax, eax
mov dword [ebp - 0x10], eax
je 0x106a8bc
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.01010db8
lea ecx, [eax + 4]
push ecx
push dword [eax]
mov ecx, esi
push edi
call fcn.01069927
cmp dword [ebp - 0x10], 0
jne 0x106a89d
mov eax, dword [esi + 0x20c]
test eax, eax
mov ebx, 0x10a8b2c
jbe 0x106a9e5
mov ecx, 0xffff
cmp eax, ecx
mov dword [ebp - 0x28], eax
jb 0x106a8de
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov word [esi + 0xb0], ax
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 0xb4], eax
jne 0x106a90e
mov dword [ebp - 0x18], 0x8007000e
jmp 0x106a9e5
and dword [ebp - 0x1c], 0
lea ecx, [esi + 0x208]
call fcn.0104bc7a
test eax, eax
mov dword [ebp - 0x10], eax
je 0x106a9e5
mov edi, dword [ebp - 0x1c]
cmp di, word [ebp - 0x28]
jae 0x106a9e5
push ebx
lea ecx, [ebp - 0x2c]
call fcn.01020db5
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.01020db5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x208]
mov byte [ebp - 4], 1
call fcn.0106a22f
mov ecx, dword [esi + 0xb4]
movzx eax, di
mov edi, dword [ebp - 0x2c]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [eax + ecx + 4], edi
mov ecx, dword [edi - 0xc]
mov edx, dword [esi + 0xb4]
mov word [eax + edx], cx
mov edx, dword [esi + 0xb4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + edx + 8], ecx
mov ecx, dword [ecx - 0xc]
mov edx, dword [esi + 0xb4]
mov word [eax + edx + 2], cx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
cmp word [ebp - 0x1c], 0xffff
je 0x106a9d2
inc dword [ebp - 0x1c]
call fcn.01009cd1
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.01009cd1
cmp dword [ebp - 0x10], 0
jne 0x106a928
jmp 0x106a9e5
call fcn.01009cd1
or dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov ecx, edi
call fcn.01009cd1
xor edi, edi
cmp dword [esi + 0x2c], edi
jne 0x106acc7
mov eax, dword [esi + 0x38]
push dword [eax + 0x190]
lea ecx, [ebp - 0x28]
call fcn.0106a600
cmp dword [ebp - 0x18], edi
mov ecx, dword [esi + 0x9c]
mov dword [ebp - 4], 2
mov dword [esi + 0x1b8], 1
mov dword [esi + 0x1d0], ecx
jl 0x106acb8
mov eax, dword [ebp - 0x28]
cmp dword [eax - 0xc], edi
je 0x106ac9e
mov dword [ebp - 0x34], edi
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edi, edi
cmp eax, edi
jne 0x106aa86
xor ebx, ebx
inc ebx
push 0x1007870
lea ecx, [esi + 0x80]
mov dword [ebp - 0x24], ebx
mov word [esi + 0x7c], 0x1f4
call fcn.01069fad
mov dword [esi + 0x2c], ebx
lea ebx, [esi + 0x84]
mov ecx, ebx
call fcn.01020dd6
mov eax, dword [ebx]
mov dword [esi + 0x1b8], edi
jmp 0x106ac8d
push dword [ebp - 0x30]
mov ecx, dword [esi + 0x1c]
push dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0106e326
cmp eax, edi
jl 0x106ac9e
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x10], eax
jg 0x106ac9e
mov ecx, dword [ebp - 0x3c]
jl 0x106aac2
cmp dword [ebp - 0x14], ecx
ja 0x106ac9e
cmp dword [ebp - 0x10], edi
mov edx, dword [ebp - 0x30]
jg 0x106ab08
jl 0x106aad4
cmp dword [ebp - 0x14], 0
jae 0x106ab08
xor edi, edi
mov ecx, dword [ebp - 0x34]
neg ecx
mov eax, edx
adc eax, edi
neg eax
cmp dword [ebp - 0x10], eax
jg 0x106aaf1
jl 0x106aaeb
cmp dword [ebp - 0x14], ecx
jae 0x106aaf1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x14], ecx
mov eax, edx
adc dword [ebp - 0x10], edx
sub ecx, 1
sbb eax, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x10], edx
jg 0x106ac58
jl 0x106ab22
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x34]
jae 0x106ac58
mov edx, dword [ebp - 0x30]
cmp eax, edx
mov edi, dword [ebp - 0x14]
mov dword [esi + 0x1c0], edi
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x1c4], edi
jl 0x106ab51
mov edi, dword [ebp - 0x34]
jg 0x106ab41
cmp ecx, edi
jb 0x106ab51
sub edi, 1
sbb edx, 0
mov ecx, edi
mov eax, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
sub ecx, dword [ebp - 0x14]
push ebx
sbb eax, dword [ebp - 0x10]
add ecx, 1
adc eax, 0
mov dword [esi + 0x1c8], ecx
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x1cc], eax
call fcn.01020db5
push dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x34]
mov byte [ebp - 4], 3
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1007858
push eax
call fcn.0106a122
add esp, 0x20
push 0x11
pop edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x1d8]
mov dword [ebp - 0x2c], edi
call fcn.0106a333
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.01068d07
lea eax, [ebp - 0x1c]
push eax
push edi
lea edi, [esi + 0xa0]
push edi
mov ecx, esi
call fcn.01069927
push ebx
lea ecx, [ebp - 0x20]
call fcn.01020db5
push dword [esi + 0x1cc]
lea eax, [ebp - 0x20]
push dword [esi + 0x1c8]
mov byte [ebp - 4], 4
push 0x1007850
push eax
call fcn.0106a122
add esp, 0x10
push 0xb
pop ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x1d8]
mov dword [ebp - 0x2c], ebx
call fcn.0106a333
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.01068d07
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov ecx, esi
call fcn.01069927
push 0x1007840
lea ecx, [esi + 0x80]
mov dword [ebp - 0x24], 1
mov word [esi + 0x7c], 0xce
call fcn.01069fad
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01009cd1
jmp 0x106acb8
xor edi, edi
inc edi
push 0x1007820
lea ecx, [esi + 0x80]
mov dword [ebp - 0x24], edi
mov word [esi + 0x7c], 0x1a0
call fcn.01069fad
mov dword [esi + 0x2c], edi
lea edi, [esi + 0x84]
mov ecx, edi
call fcn.01020dd6
and dword [esi + 0x1b8], 0
mov eax, dword [edi]
mov dword [esi + 0x1c0], eax
mov eax, dword [eax - 0xc]
mov dword [esi + 0x1c4], eax
jmp 0x106acb8
or dword [esi + 0x1c8], 0xffffffff
or dword [esi + 0x1cc], 0xffffffff
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.01009cd1
xor edi, edi
jmp 0x106ad04
mov eax, dword [esi + 0x8c]
cmp eax, edi
mov dword [esi + 0x1b8], edi
je 0x106acef
mov ecx, dword [esi + 0x88]
cmp ecx, edi
je 0x106acef
mov dword [esi + 0x1c0], ecx
mov dword [esi + 0x1c4], eax
jmp 0x106ad2c
mov eax, dword [esi + 0x84]
mov dword [esi + 0x1c0], eax
mov eax, dword [eax - 0xc]
mov dword [esi + 0x1c4], eax
cmp dword [ebp - 0x24], 1
jne 0x106ad2c
mov ax, word [esi + 0x7c]
mov word [esi + 0xa8], ax
mov eax, dword [esi + 0x80]
mov cx, word [eax - 0xc]
mov word [esi + 0xaa], cx
mov dword [esi + 0xac], eax
cmp dword [esi + 0x238], edi
pop ebx
jne 0x106ad75
mov ax, word [esi + 0xa8]
cmp ax, 0xc8
je 0x106ad48
cmp ax, 0xce
jne 0x106ad75
cmp dword [esi + 0x2c], 1
jne 0x106ad5e
cmp dword [esi + 0x1c4], edi
je 0x106ad75
cmp dword [esi + 0x1c0], edi
je 0x106ad75
lea eax, [esi + 0x1b8]
mov word [esi + 0x1b0], 1
mov dword [esi + 0x1b4], eax
jmp 0x106ad82
mov word [esi + 0x1b0], di
mov dword [esi + 0x1b4], edi
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x106adbf
test byte [eax + 0x1c], 1
je 0x106adbf
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x18], edi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x106adbf
push dword [ebp - 0x18]
push 0x1007714
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret