Function at 0x100c8bf
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdf8
mov eax, dword [0x1017048]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0xcec], esi
call fcn.0100ba55
push esi
push dword [ebp + 0x10]
cmp al, 1
setne byte [ebp - 0xcd5]
call fcn.0100af16
add esp, 0x10
test al, al
jne 0x100c907
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0xcf4]
xor esi, esi
push eax
mov dword [ebp - 0xcf4], esi
call fcn.0100a7a1
cmp dword [ebp - 0xcf4], esi
mov edi, eax
pop ecx
mov dword [ebp - 0xce0], edi
jne 0x100d333
cmp edi, esi
je 0x100d333
cmp byte [0x1018810], 0
mov dword [ebp - 0xcf4], esi
mov byte [ebp - 0xce1], 1
jne 0x100c986
lea ecx, [ebp - 0xcf4]
call fcn.01008658
push eax
push 0x20019
push esi
push edi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x100c986
push eax
push edi
push 0x1005b08
call fcn.0100f591
add esp, 0xc
mov byte [ebp - 0xce1], 0
push dword [ebp - 0xce0]
mov esi, 0x1005a88
push esi
mov ebx, 0x104
lea eax, [ebp - 0xcd4]
push ebx
push eax
call fcn.0100a0db
and word [ebp - 0x8c4], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x8c2]
rep stosd dword es:[edi], eax
push 0x100125c
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x8c4]
push ebx
push eax
call fcn.0100a0db
lea eax, [ebp - 0xcd4]
mov dword [ebp - 0xdf8], eax
lea eax, [ebp - 0x8c4]
mov dword [ebp - 0xde4], eax
mov eax, dword [ebp - 0xcf4]
mov esi, 0x80000002
mov ebx, 0x1001270
mov dword [ebp - 0xda4], eax
mov dword [ebp - 0xd90], eax
mov edx, 0x1004844
add esp, 0x20
xor eax, eax
mov ecx, 0x100127c
mov dword [ebp - 0xd80], eax
mov dword [ebp - 0xd7c], eax
mov byte [ebp - 0xd78], al
mov dword [ebp - 0xd74], eax
lea edi, [ebp - 0xd70]
mov dword [ebp - 0xdf4], esi
mov byte [ebp - 0xdf0], 0
mov dword [ebp - 0xdec], ebx
mov dword [ebp - 0xde8], 0x1005a58
mov dword [ebp - 0xde0], esi
mov byte [ebp - 0xddc], 0
mov dword [ebp - 0xdd8], ebx
mov dword [ebp - 0xdd4], 0x1005a24
mov dword [ebp - 0xdd0], 0x1004880
mov dword [ebp - 0xdcc], esi
mov byte [ebp - 0xdc8], 0
mov dword [ebp - 0xdc4], ebx
mov dword [ebp - 0xdc0], 0x1005a00
mov dword [ebp - 0xdbc], edx
mov dword [ebp - 0xdb8], esi
mov byte [ebp - 0xdb4], 0
mov dword [ebp - 0xdb0], ebx
mov dword [ebp - 0xdac], 0x10059e8
mov dword [ebp - 0xda8], edx
mov byte [ebp - 0xda0], 1
mov dword [ebp - 0xd9c], ecx
mov dword [ebp - 0xd98], 0x10059cc
mov dword [ebp - 0xd94], 0x1004808
mov byte [ebp - 0xd8c], 1
mov dword [ebp - 0xd88], ecx
mov dword [ebp - 0xd84], 0x10059b8
stosd dword es:[edi], eax
lea eax, [ebp - 0xcd4]
mov dword [ebp - 0xd6c], eax
mov dword [ebp - 0xd68], esi
mov byte [ebp - 0xd64], 0
mov dword [ebp - 0xd60], ebx
mov dword [ebp - 0xd5c], 0x1005a58
mov dword [ebp - 0xd58], 0x1004880
mov dword [ebp - 0xd54], esi
mov byte [ebp - 0xd50], 0
mov dword [ebp - 0xd4c], ebx
mov dword [ebp - 0xd48], 0x100599c
mov dword [ebp - 0xd44], edx
mov dword [ebp - 0xd40], esi
mov byte [ebp - 0xd3c], 0
mov dword [ebp - 0xd38], ebx
mov dword [ebp - 0xd34], 0x10059e8
mov eax, 0x80000001
mov dword [ebp - 0xd2c], eax
mov dword [ebp - 0xd18], eax
xor eax, eax
cmp byte [0x1018810], al
mov dword [ebp - 0xd08], eax
mov dword [ebp - 0xd04], eax
mov byte [ebp - 0xd00], al
mov dword [ebp - 0xcfc], eax
lea edi, [ebp - 0xcf8]
mov dword [ebp - 0xd30], edx
mov byte [ebp - 0xd28], 1
mov dword [ebp - 0xd24], ecx
mov dword [ebp - 0xd20], 0x10059cc
mov dword [ebp - 0xd1c], 0x1004808
mov byte [ebp - 0xd14], 1
mov dword [ebp - 0xd10], ecx
mov dword [ebp - 0xd0c], 0x10059b8
stosd dword es:[edi], eax
lea eax, [ebp - 0xd6c]
jne 0x100cbeb
lea eax, [ebp - 0xdf8]
mov dword [ebp - 0xcdc], eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xcec]
call fcn.01008ca3
mov eax, dword [ebp - 0xcdc]
mov eax, dword [eax]
test eax, eax
pop ecx
pop ecx
mov edi, 0x104
je 0x100cf8e
mov eax, dword [ebp - 0xcdc]
mov al, byte [eax + 8]
test al, al
je 0x100cc6b
cmp byte [ebp - 0xce1], 0
jne 0x100cc4e
push dword [ebp - 0xcec]
mov eax, dword [ebp - 0xcdc]
push dword [eax + 0x10]
push 0x10058e0
call fcn.0100f591
add esp, 0xc
jmp 0x100cf78
test al, al
je 0x100cc6b
push 0x100125c
push dword [ebp - 0xce0]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100cf78
push dword [ebp - 0xcec]
mov eax, dword [ebp - 0xcdc]
push dword [eax + 0x10]
push 0x1005880
call fcn.0100f591
add esp, 0xc
cmp byte [ebp + 0x10], 0
jne 0x100ceba
mov eax, dword [ebp - 0xcdc]
push 0x1005868
push dword [eax]
call fcn.0100f810
test eax, eax
pop ecx
pop ecx
je 0x100ccd9
mov ecx, dword [ebp - 0xcdc]
mov ecx, dword [ecx]
sub eax, ecx
sar eax, 1
inc eax
push eax
push ecx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x100584c
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x100ccf6
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x25c]
push 0x100582c
push edi
push eax
call fcn.0100a0db
add esp, 0x10
mov eax, dword [ebp - 0xcdc]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.0100c443
add esp, 0xc
test al, al
jne 0x100cd1e
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x25c]
push 0x10057fc
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x10057a0
call fcn.0100f591
and dword [ebp - 0xcf0], 0
add esp, 0x20
lea ecx, [ebp - 0xcf0]
call fcn.01008658
push eax
push 0x20019
push 0
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100cdeb
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x4b4]
push 0x1005784
push edi
push eax
call fcn.0100a0db
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x25c]
push 0x100576c
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xcf0]
mov eax, dword [ebp - 0xcdc]
push dword [eax + 4]
call fcn.0100bd3a
add esp, 0x34
test al, al
jne 0x100ce21
jmp 0x100ce1a
cmp eax, 2
je 0x100ce21
mov eax, dword [ebp - 0xcdc]
cmp dword [eax + 4], esi
mov eax, 0x1001df4
je 0x100ce05
mov eax, 0x1001de8
lea ecx, [ebp - 0x25c]
push ecx
push eax
push 0x100573c
call fcn.0100f591
add esp, 0xc
mov byte [ebp - 0xcd5], 1
mov eax, dword [ebp - 0xcdc]
cmp dword [eax + 4], esi
jne 0x100ce3e
push 0x1005714
push dword [eax]
call fcn.0100f810
test eax, eax
pop ecx
pop ecx
jne 0x100ceaf
mov dword [ebp - 0xce8], 0x1017004
mov eax, dword [ebp - 0xce8]
push dword [eax]
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x25c]
push 0x1004e40
push edi
push eax
call fcn.0100a0db
push dword [ebp - 0xce8]
lea eax, [ebp - 0x25c]
push dword [ebp - 0xcec]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax + 0xc]
push dword [eax + 4]
call fcn.01009823
add esp, 0x28
test al, al
jne 0x100ce9c
mov byte [ebp - 0xcd5], 1
add dword [ebp - 0xce8], 0xc
cmp dword [ebp - 0xce8], 0x101701c
jle 0x100ce48
lea ecx, [ebp - 0xcf0]
call fcn.01008676
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x25c]
push 0x1003e9c
push edi
push eax
call fcn.0100a0db
mov eax, dword [ebp - 0xcdc]
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x25c]
push ecx
push eax
push 0x10056c0
call fcn.0100f591
push dword [ebp + 0x10]
mov eax, dword [ebp - 0xcdc]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x25c]
push ecx
push eax
call fcn.01008fcd
add esp, 0x2c
test eax, eax
jne 0x100cf1a
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax]
lea eax, [ebp - 0x25c]
push 0x100569c
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax + 0xc]
push 0x1005638
call fcn.0100f591
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xcdc]
push dword [eax + 4]
call fcn.01008fcd
add esp, 0x2c
test eax, eax
jne 0x100cf78
mov byte [ebp - 0xcd5], 1
add dword [ebp - 0xcdc], 0x14
mov eax, dword [ebp - 0xcdc]
cmp dword [eax], 0
jne 0x100cc17
mov eax, dword [ebp - 0xcec]
test eax, eax
jne 0x100cf9d
mov eax, 0x1001ac0
push eax
push 0x10055c0
call fcn.0100f591
cmp byte [ebp + 0x10], 0
pop ecx
pop ecx
jne 0x100d14a
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x1004880
push 0x1005570
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.0100c443
add esp, 0x20
test al, al
jne 0x100cff0
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x1004880
push 0x1005518
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x10057a0
call fcn.0100f591
and dword [ebp - 0xcf0], 0
add esp, 0x24
lea ecx, [ebp - 0xcf0]
call fcn.01008658
push eax
push 0x20019
push 0
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d0b6
push dword [ebp - 0xce0]
lea eax, [ebp - 0x4b4]
push 0x1004880
push 0x10054d0
push edi
push eax
call fcn.0100a0db
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x1004880
push 0x1005490
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xcf0]
push esi
call fcn.0100bd3a
add esp, 0x3c
test al, al
jne 0x100d0d5
jmp 0x100d0ce
cmp eax, 2
je 0x100d0d5
lea eax, [ebp - 0x25c]
push eax
push 0x1005458
call fcn.0100f591
pop ecx
pop ecx
mov byte [ebp - 0xcd5], 1
mov dword [ebp - 0xce8], 0x1017004
mov eax, dword [ebp - 0xce8]
push dword [eax]
lea eax, [ebp - 0x25c]
push dword [ebp - 0xce0]
push 0x1004880
push 0x1005420
push edi
push eax
call fcn.0100a0db
push dword [ebp - 0xce8]
lea eax, [ebp - 0x25c]
push dword [ebp - 0xcec]
push eax
push ebx
push esi
call fcn.01009823
add esp, 0x2c
test al, al
jne 0x100d12c
mov byte [ebp - 0xcd5], 1
add dword [ebp - 0xce8], 0xc
cmp dword [ebp - 0xce8], 0x101701c
jle 0x100d0df
lea ecx, [ebp - 0xcf0]
call fcn.01008676
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x1004880
push 0x10053d8
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x25c]
push eax
mov ebx, 0x1001df4
push ebx
push 0x10056c0
call fcn.0100f591
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.01008fcd
add esp, 0x30
test eax, eax
jne 0x100d1a0
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x1004880
push 0x1005390
push edi
push eax
call fcn.0100a0db
lea eax, [ebp - 0x25c]
push eax
push ebx
push 0x1005638
call fcn.0100f591
mov ebx, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.01008fcd
add esp, 0x30
test eax, eax
jne 0x100d1f2
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x54]
push eax
push 0x1005310
lea eax, [ebp - 0x25c]
push edi
push eax
call fcn.0100a0db
push ebx
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.01008fcd
add esp, 0x1c
test eax, eax
jne 0x100d224
mov byte [ebp - 0xcd5], 1
test bl, bl
jne 0x100d248
cmp byte [ebp + 0x14], bl
jne 0x100d248
lea eax, [ebp - 0x54]
push eax
push 0x1005290
call fcn.0100b11b
test al, al
pop ecx
pop ecx
jne 0x100d248
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x10051f8
push edi
push eax
call fcn.0100a0db
push ebx
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.01008fcd
add esp, 0x20
test eax, eax
jne 0x100d280
mov byte [ebp - 0xcd5], 1
push dword [ebp - 0xce0]
lea eax, [ebp - 0x25c]
push 0x1005160
push edi
push eax
call fcn.0100a0db
add esp, 0x10
test bl, bl
jne 0x100d2c1
cmp byte [ebp + 0x14], bl
jne 0x100d2c1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0100b11b
test al, al
pop ecx
pop ecx
jne 0x100d2c1
mov byte [ebp - 0xcd5], 1
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.01009446
add esp, 0xc
test al, al
jne 0x100d2e0
mov byte [ebp - 0xcd5], 1
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x1005290
call fcn.01009446
add esp, 0xc
test al, al
jne 0x100d2fd
mov byte [ebp - 0xcd5], 1
test bl, bl
mov eax, 0x180
je 0x100d309
add eax, 8
push dword [ebp + 0x14]
push dword [ebp - 0xcec]
push eax
call fcn.0100b628
add esp, 0xc
test al, al
jne 0x100d326
mov byte [ebp - 0xcd5], 1
lea ecx, [ebp - 0xcf4]
call fcn.01008676
jmp 0x100d354
push dword [ebp - 0xcf4]
push 0x1004f50
call fcn.0100f591
mov ebx, dword [ebp + 0x10]
pop ecx
pop ecx
mov byte [ebp - 0xcd5], 1
mov edi, 0x104
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0xcec]
call fcn.01008ca3
pop ecx
pop ecx
push edi
lea eax, [ebp - 0xacc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100d406
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0xacc]
push eax
push 0x1005110
lea eax, [ebp - 0x6bc]
push edi
push eax
call fcn.0100a0db
add esp, 0x14
test eax, eax
jl 0x100d3bf
lea eax, [ebp - 0x6bc]
push ebx
push eax
call fcn.0100aa47
test eax, eax
pop ecx
pop ecx
jne 0x100d3bf
mov byte [ebp - 0xcd5], 1
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0xce0]
lea eax, [ebp - 0xacc]
push eax
push 0x10050b8
lea eax, [ebp - 0x6bc]
push edi
push eax
call fcn.0100a0db
add esp, 0x18
test eax, eax
jl 0x100d406
lea eax, [ebp - 0x6bc]
push ebx
push eax
call fcn.0100aa47
test eax, eax
pop ecx
pop ecx
jne 0x100d406
mov byte [ebp - 0xcd5], 1
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ebp - 0xcd5], al
pop edi
pop esi
sete al
pop ebx
call fcn.0100f0dc
leave
ret