Function at 0x42d180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce072
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x664340]
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 esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42d1e1
mov eax, dword [0x5d4d80]
lea ecx, [ebp - 0x218]
mov dword [edi], eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d200
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403240
mov eax, dword [0x6692fc]
test eax, eax
jne 0x42d25c
push 0x15c
call fcn.0044a2e5
add esp, 4
mov dword [ebp - 0x270], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42d24e
mov ecx, eax
call fcn.004393b0
jmp 0x42d250
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6692fc], eax
mov ecx, eax
call fcn.0044f059
mov edx, eax
mov dword [ebp - 0x250], 0
mov ecx, edx
mov dword [ebp - 0x24c], 7
xor eax, eax
mov word [ebp - 0x260], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d287
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.00403240
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 1
call fcn.00464805
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.00464839
test eax, eax
je 0x42d3ae
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0
push eax
lea ecx, [ebp - 0x294]
call fcn.00464927
push 0xb
xor eax, eax
mov dword [ebp - 0x220], 0
push str.BKBbcor.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403240
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.0042a4f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00402fe0
push 0xd
xor eax, eax
mov dword [ebp - 0x220], 0
push str.BKBbcor64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403240
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.0042a4f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00402fe0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x294]
call fcn.00464945
jmp 0x42d45a
push 0xb
xor eax, eax
mov dword [ebp - 0x220], 0
push str.BKBbcor.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403240
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.0042a4f0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00402fe0
push 0xd
xor eax, eax
mov dword [ebp - 0x220], 0
push str.BKBbcor64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403240
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
push esi
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.0042a4f0
lea ecx, [ebp - 0x230]
call fcn.00402fe0
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 6
push str.CLSID_
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.00403240
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 0
push eax
push SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42d4ff
push dword [ebp - 0x264]
mov ecx, esi
call fcn.0042aa40
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x42d4ff
push eax
call edi
push 0x17
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp - 0x248]
call fcn.00403240
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 0x42d559
push dword [ebp - 0x268]
mov ecx, esi
call fcn.0042aa40
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x42d559
push eax
call edi
push 8
push str.TypeLib_
lea ecx, [ebp - 0x248]
call fcn.00403240
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 0x42d5b3
push dword [ebp - 0x26c]
mov ecx, esi
call fcn.0042b190
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x42d5b3
push eax
call edi
mov ecx, esi
call fcn.0042b680
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x42d5fa
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d5f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d67a
push edx
push ecx
call fcn.0044a315
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00464818
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x42d65e
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d654
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d67f
push edx
push ecx
call fcn.0044a315
add esp, 8
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.0044a851
mov esp, ebp
pop ebp
ret
call fcn.00470179
call fcn.00470179
int3