Function at 0x10070180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e77a
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x100e6018]
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, dword [ebp + 0x20]
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100701dd
xor bl, bl
jmp 0x1007029a
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
push 0x100b535c
push 0x17
push 0
push 0x100a1a98
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x424]
jns 0x10070214
xor bl, bl
jmp 0x1007028c
xor ecx, ecx
mov dword [ebp - 0x428], ecx
test eax, eax
je 0x1007024a
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
push 0x100b534c
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x428]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x424]
cmovs ecx, edx
mov dword [ebp - 0x428], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x10070276
cmp dword [ebp + 0x1c], 8
mov eax, dword [ecx]
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
push 0
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x100702ca
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
xor bl, bl
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1007028c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
test eax, eax
je 0x1007029a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x1c], 8
jb 0x100702ac
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
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.100947be
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0x28]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
call dword [ecx + 0xc]
test esi, esi
jne 0x10070489
test eax, eax
jne 0x10070489
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
call fcn.100085e0
push esi
push 0x100b5314
mov ecx, edi
call fcn.100086f0
cmp eax, 0xffffffff
je 0x100703eb
push esi
push 0x100b2b04
mov ecx, edi
call fcn.100086f0
cmp eax, 0xffffffff
jne 0x100703eb
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x474]
call fcn.10008550
push eax
mov edx, 0x100b2b04
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 3
call fcn.10011df0
push 0x100b2b04
mov edx, eax
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 4
call fcn.10011da0
add esp, 8
mov ecx, edi
push eax
call fcn.1000d090
lea ecx, [ebp - 0x444]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [ebp - 0x45c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 2
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
cmp word [ebp - 0x218], 0x20
lea ecx, [ebp - 0x218]
jne 0x10070409
jmp 0x10070400
add ecx, 2
cmp word [ecx], 0x20
je 0x10070400
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070410
sub ecx, edx
sar ecx, 1
je 0x10070489
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x444]
call fcn.10008550
mov esi, eax
push 0x100b5314
mov edx, edi
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 5
call fcn.10011cb0
push esi
mov edx, eax
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 6
call fcn.10011e40
add esp, 8
mov ecx, edi
push eax
call fcn.1000d090
lea ecx, [ebp - 0x474]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [ebp - 0x45c]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
lea ecx, [ebp - 0x444]
call sym.iImportLib.dll_public:_void___thiscall_elex::strings::CAnalyzeCmdline::destructor_void_
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
mov bl, 1
jmp 0x10070278