Function at 0x42d2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce1a2
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x667ce0]
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.005a2240
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 0x42d301
mov eax, dword [0x5d4964]
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 0x42d320
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403240
mov eax, dword [0x66931c]
test eax, eax
jne 0x42d37c
push 0x15c
call fcn.0059c99d
add esp, 4
mov dword [ebp - 0x270], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42d36e
mov ecx, eax
call fcn.004394d0
jmp 0x42d370
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x66931c], eax
mov ecx, eax
call fcn.0043c9f8
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 0x42d3a7
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.004535d9
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 2
call fcn.0045360d
test eax, eax
je 0x42d4ce
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0
push eax
lea ecx, [ebp - 0x294]
call fcn.004536fb
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.0042a610
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.0042a610
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00402fe0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x294]
call fcn.00453719
jmp 0x42d57a
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.0042a610
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.0042a610
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 connect
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42d61f
push dword [ebp - 0x264]
mov ecx, esi
call fcn.0042ab60
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x42d61f
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.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x42d679
push dword [ebp - 0x268]
mov ecx, esi
call fcn.0042ab60
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x42d679
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 connect
call ebx
test eax, eax
jne 0x42d6d3
push dword [ebp - 0x26c]
mov ecx, esi
call fcn.0042b2b0
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x42d6d3
push eax
call edi
mov ecx, esi
call fcn.0042b7a0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x42d71a
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d710
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d79a
push edx
push ecx
call fcn.0059c9cd
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.004535ec
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x42d77e
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d774
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d79f
push edx
push ecx
call fcn.0059c9cd
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.0059cf09
mov esp, ebp
pop ebp
ret
call fcn.005a57f9
call fcn.005a57f9
int3