Function at 0x10058380
Capabilities:
Get common file path

Disassembly:
push 0x288
mov eax, 0x100f11bd
call fcn.10082248
mov esi, ecx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x218]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x100583c3
mov eax, dword [0x100f58d0]
mov dword [edi], eax
lea eax, [ebp - 0x218]
lea edi, [esi + 0x18]
push eax
mov ecx, edi
call fcn.10022050
push esi
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
call fcn.1003744e
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], ebx
call fcn.10064201
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.10064270
test eax, eax
je 0x100584f2
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], ebx
push eax
lea ecx, [ebp - 0x294]
call fcn.10064405
push 7
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x230]
pop ebx
xor eax, eax
mov dword [ebp - 0x21c], ebx
push str.zipuscfg.dll
mov word [ebp - 0x230], ax
call fcn.10022050
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
push edi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.100562a0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.10001ee0
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], ebx
push str.zipuscfg64.dll
mov word [ebp - 0x230], ax
call fcn.10022050
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
push edi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.100562a0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.10001ee0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x294]
call fcn.10064423
jmp 0x1005858e
push 7
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x230]
pop ebx
xor eax, eax
mov dword [ebp - 0x21c], ebx
push str.zipuscfg.dll
mov word [ebp - 0x230], ax
call fcn.10022050
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push edi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.100562a0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.10001ee0
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], ebx
push str.zipuscfg64.dll
mov word [ebp - 0x230], ax
call fcn.10022050
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
push edi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.100562a0
lea ecx, [ebp - 0x230]
call fcn.10001ee0
xor edi, edi
mov dword [ebp - 0x234], ebx
xor eax, eax
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x238], edi
mov word [ebp - 0x248], ax
push str.CLSID_
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.10022050
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x264]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
push 0xf013f
push edi
push eax
push SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10058622
push dword [ebp - 0x264]
mov ecx, esi
call fcn.100566e0
cmp dword [ebp - 0x264], 0
je 0x10058622
push dword [ebp - 0x264]
call edi
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp - 0x248]
call fcn.10022050
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x268]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x1005867e
push dword [ebp - 0x268]
mov ecx, esi
call fcn.100566e0
cmp dword [ebp - 0x268], 0
je 0x1005867e
push dword [ebp - 0x268]
call edi
push str.TypeLib_
lea ecx, [ebp - 0x248]
call fcn.10022050
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x26c]
push ecx
push 0xf013f
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x100586da
push dword [ebp - 0x26c]
mov ecx, esi
call fcn.10056d6b
cmp dword [ebp - 0x26c], 0
je 0x100586da
push dword [ebp - 0x26c]
call edi
mov ecx, esi
call fcn.100571d0
lea ecx, [ebp - 0x248]
call fcn.10001ee0
lea ecx, [ebp - 0x294]
call fcn.10064214
lea ecx, [ebp - 0x260]
call fcn.10001ee0
mov al, 1
call fcn.100821f2
ret