Function at 0x10016160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa897
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x100db688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10007040
mov ecx, eax
test ecx, ecx
je 0x10016453
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x478], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10081e40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ded8c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016203
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.10007260
mov eax, dword [edi + 0x60]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x10016270
lea eax, [ebp - 0x47c]
push 1
push eax
call fcn.1005c1d0
add esp, 8
push eax
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 1
call fcn.100074b0
mov edx, dword [ebp - 0x47c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016270
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x64]
call fcn.1002e610
push 0x1f4
lea ecx, [edi + 0x88]
call fcn.10044320
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x448]
mov dword [ebp - method.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CConfigMgr__AEXXZPAV3__std__X__V_std__.virtual_0], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CConfigMgr__AEXXZPAV3__std__X__V_std__.0
mov dword [ebp - 0x444], fcn.10018e80
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x448]
push eax
lea ecx, [edi + 0x88]
call fcn.10043ff0
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x100162fd
mov edx, dword [ecx]
lea eax, [ebp - 0x448]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x424], 0
mov ecx, dword [ebp - 0x44c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001631f
mov edx, dword [ecx]
lea eax, [ebp - 0x470]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp dword [edi + 0xc8], 0
mov esi, dword [ebp - 0x478]
jne 0x1001638d
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10081e40
add esp, 0xc
lea eax, [ebp - 0x420]
push str.Utils7z.dll
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001638d
lea eax, [ebp - 0x420]
push eax
call fcn.10049a60
add esp, 4
test eax, eax
je 0x1001638d
lea eax, [ebp - 0x420]
push eax
call fcn.1006a0d0
mov dword [edi + 0xc8], eax
mov byte [ebp - 0x471], 0
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 4
push eax
call fcn.100451f5
lea eax, [ebp - 0x484]
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x471]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x48c]
push eax
push 0x1000db20
push 0x100ded84
call fcn.1004549a
add esp, 0x10
test eax, eax
je 0x10016433
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 6
push eax
call fcn.1004522f
mov ecx, dword [0x100ded80]
add esp, 4
mov byte [ebp - 4], 0
call fcn.10031e50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10016417
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061c7c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 7
push eax
call fcn.10045250
add esp, 4
mov byte [ebp - 4], 5
test al, al
jne 0x1001645d
call fcn.100454b2
push 0x80004005
call fcn.10006cd0
sub esp, 8
lea eax, [ebp - 0x484]
mov ecx, esp
push eax
call fcn.10007950
call fcn.10008920
int3