Function at 0x100162f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
mov dword [ebp - 0xc], ebx
je 0x10016377
push dword [ebp + 0xc]
call esi
test eax, eax
jbe 0x10016377
mov dword [ebp - 4], 1
push 1
pop edi
cmp dword [ebx + 0x20], edi
je 0x100166c3
mov eax, dword [0x1001f030]
cmp dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
jne 0x1001648d
push ecx
mov edi, esp
push dword [ebp + 0x10]
call esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [edi], eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.1000436a
mov ecx, ebx
call fcn.10015ce8
mov edi, eax
jmp 0x100166ab
cmp dword [ebp + 0x10], 0
je 0x1001638f
push dword [ebp + 0x10]
call esi
test eax, eax
jbe 0x1001638f
mov dword [ebp - 4], 2
jmp 0x10016326
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100163a6
push edi
call esi
test eax, eax
jbe 0x100163a6
mov dword [ebp - 4], 3
jmp 0x10016326
mov eax, dword [0x1001f030]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test edi, edi
mov dword [ebp - 4], eax
jne 0x100163be
and dword [ebp - 0xc], 0
jmp 0x100163e2
push edi
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push 0
push edi
push dword [ebp + 0x14]
push eax
call fcn.100036f5
mov dword [ebp - 0xc], eax
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1001640d
push dword [ebp + 0x10]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push ebx
push edi
push dword [ebp + 0x10]
push eax
call fcn.100036f5
mov ebx, eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10016418
xor eax, eax
jmp 0x10016437
push edi
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.100036f5
push dword [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 4]
push str.config.xml
push eax
call fcn.10002307
add esp, 0x14
push 0
push 0x10024174
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 4]
call fcn.10001cd1
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x14]
call esi
xor eax, eax
jmp 0x100166df
cmp dword [ebp - 4], 2
jne 0x10016537
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x100164ad
xor edi, edi
jmp 0x100164d6
push dword [ebp + 8]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push 0
push edi
push dword [ebp + 8]
push eax
call fcn.100036f5
mov edi, eax
test edi, edi
jne 0x100164da
xor eax, eax
jmp 0x100164dd
push edi
call ebx
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.1000438f
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.10003f61
mov ecx, dword [ebp - 0xc]
call fcn.10016093
test eax, eax
jne 0x1001650b
push 1
pop edi
jmp 0x100166ab
cmp dword [ebp + 0x10], 0
je 0x100165b6
push dword [ebp + 0x10]
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push 0
push esi
push dword [ebp + 0x10]
jmp 0x100165d7
cmp dword [ebp - 4], 3
jne 0x100165f7
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x10016557
xor edi, edi
jmp 0x10016580
push dword [ebp + 8]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push 0
push edi
push dword [ebp + 8]
push eax
call fcn.100036f5
mov edi, eax
test edi, edi
jne 0x10016584
xor eax, eax
jmp 0x10016587
push edi
call ebx
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.1000438f
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.10003f61
call fcn.10001871
pop ecx
test eax, eax
pop ecx
je 0x10016503
cmp dword [ebp + 0x14], 0
jne 0x100165ba
xor esi, esi
jmp 0x100165e3
push dword [ebp + 0x14]
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.10016950
mov eax, esp
push 0
push esi
push dword [ebp + 0x14]
push eax
call fcn.100036f5
mov esi, eax
test esi, esi
jne 0x100165e7
xor eax, eax
jmp 0x100165ea
push esi
call ebx
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.1000438f
mov ebx, dword [ebp - 0xc]
cmp dword [ebx + 0x20], 3
je 0x100166a9
cmp dword [ebp - 4], 2
jne 0x10016630
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [eax - 8]
mov esi, dword [ecx - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002617
push eax
push esi
lea ecx, [ebp - 8]
call fcn.10002617
push eax
call section..text
pop ecx
pop ecx
jmp 0x10016688
and byte [ebp - 0x118], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ecx
lea eax, [ebp - 0x118]
mov ecx, esp
push eax
call fcn.10001cfd
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.10003f61
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.10003f61
call fcn.10001345
add esp, 0xc
cmp eax, 0xfffffffe
je 0x10016503
cmp dword [ebx + 0x20], 4
jne 0x100166a0
test eax, eax
je 0x100166a9
jmp 0x10016503
cmp eax, 0xffffffff
je 0x10016503
xor edi, edi
lea ecx, [ebp - 0x14]
call fcn.10001cd1
lea ecx, [ebp - 0x10]
call fcn.10001cd1
lea ecx, [ebp - 8]
call fcn.10001cd1
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x14]
call esi
mov eax, edi
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 0x10