Function at 0x42c080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b65e8
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x6319d0]
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, dword [ebp + 8]
mov dword [ebp - 0x130], esi
call fcn.0046d4f0
test eax, eax
je 0x42c134
push esi
push str.CDIFxUninstall_::_DeleteMatchingOEMInf_:_pszEnumFileName___s_n
push 0x65b790
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x65b690], eax
mov eax, 0x65b790
mov dword [0x65b694], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42c0f0
mov edi, 0x65b690
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42c101
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x65b690
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor edi, edi
mov dword [ebp - 0x128], edi
call fcn.004a8620
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42c156
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], edi
call fcn.004a8620
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42c185
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x11c], ebx
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INFOEM.INF
lea ecx, [ebp - 0x124]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 3
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 4
call fcn.00402af0
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c26c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
lea ecx, [ebp - 0x154]
call fcn.004a7e5d
push 1
push edi
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 5
call fcn.00403440
mov eax, dword [ebp - 0x150]
mov byte [ebp - 4], 6
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x120], eax
cmp eax, edi
je 0x42c3b6
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x154]
call fcn.0045f5b0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
mov byte [ebp - 4], 7
cmp eax, esi
je 0x42c32a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42c314
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42c314
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42c309
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x11c], ebx
jmp 0x42c32a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004026b0
mov ebx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c350
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x130]
push ebx
push ecx
lea ecx, [ebp - 0x115]
call fcn.0042d570
test eax, eax
jne 0x42c375
cmp dword [ebp - 0x120], eax
jne 0x42c2b0
jmp 0x42c3b6
push 0
push ebx
lea ecx, [ebp - 0x115]
call fcn.00431510
push str..PNF
push 0x5cd3c8
lea ecx, [ebp - 0x11c]
call fcn.00408720
mov ebx, dword [ebp - 0x11c]
push 0
push ebx
lea ecx, [ebp - 0x115]
call fcn.00431510
mov dword [ebp - 0x128], 1
call fcn.0046d4f0
test eax, eax
je 0x42c439
mov edx, dword [ebp - 0x128]
push edx
push str.CDIFxUninstall_::_DeleteMatchingOEMIn_:_bRetVal___d_n
push 0x65b590
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x65b490], eax
mov eax, 0x65b590
mov dword [0x65b494], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42c3f5
mov edi, 0x65b490
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42c406
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x65b490
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
call fcn.004a8028
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42c468
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
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.00599ed4
mov esp, ebp
pop ebp
ret 4