Function at 0x401810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
lea eax, [ebx + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea esi, [ebx + 0x118]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movsx ecx, byte [str._:____t_cz]
push ecx
push esi
call fcn.004050a0
mov dl, byte [0x40d1cd]
add esp, 8
mov byte [eax], dl
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40186c
call fcn.00403150
mov dword [ebx + 4], eax
mov al, byte [0x40d1cd]
mov cl, byte [ebx + 0x424]
lea ebp, [ebx + 0x424]
cmp cl, al
je 0x40189a
lea eax, [ebx + 0x634]
push eax
push ebp
mov dword [esp + 0x18], eax
call fcn.004034f0
add esp, 8
jmp 0x401a47
mov cl, byte [ebx + 0x320]
lea edi, [ebx + 0x320]
cmp cl, al
lea edx, [esp + 0x14]
je 0x401973
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d20c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x634]
push esi
push ebp
push eax
mov dword [esp + 0x1c], esi
call fcn.00403af0
add esp, 0xc
test eax, eax
je 0x401956
mov dword [ebx + 0x528], 1
jmp 0x401a47
lea edi, [ebx + 0x320]
push esi
push edi
call fcn.004034f0
add esp, 8
test eax, eax
je 0x401a47
jmp 0x401a2a
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d20c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x634]
push esi
push ebp
push eax
mov dword [esp + 0x1c], esi
call fcn.00403af0
add esp, 0xc
test eax, eax
je 0x401a16
mov dword [ebx + 0x528], 1
jmp 0x401a47
lea edi, [ebx + 0x118]
push esi
push edi
call fcn.004034f0
add esp, 8
test eax, eax
je 0x401a47
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x638]
lea esi, [ebx + 0x630]
push eax
push esi
push ecx
push edx
push edi
push ebp
call fcn.00404760
mov eax, dword [ebx + 4]
add esp, 0x18
cmp eax, 4
je 0x401a77
cmp eax, 5
jne 0x401a84
mov eax, dword [edi]
push esi
push eax
push ebp
call fcn.00404600
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [edi]
lea ecx, [ebx + 0x10]
push ecx
push edx
push eax
push ebp
call fcn.004049a0
mov ecx, dword [ebx]
add esp, 0x10
cmp dword [ecx], 0
jne 0x401aaf
push str.MCCI
call fcn.00403360
mov edx, dword [ebx]
add esp, 4
mov dword [edx], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x401aca
push str.MCCI_Composite_Device_Driver_Set
call fcn.00403360
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx + 0xc], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x20]
test eax, eax
jne 0x401ae5
push str.MCCIUninstall.exe
call fcn.00403360
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx + 0x20], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
test eax, eax
jne 0x401b00
push str.EC73DCFD_483A_4bd6_AC69_0317CC2D1A54
call fcn.00403360
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx + 0x24], eax
mov dl, byte [ebx + 0x52c]
mov al, byte [0x40d1cd]
lea ebp, [ebx + 0x52c]
cmp dl, al
jne 0x401bd9
push ebx
call fcn.00401c00
add esp, 4
test eax, eax
je 0x401bd9
mov edi, 0x40d20c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov edi, dword [eax + 0x9c]
test edi, edi
jne 0x401bb4
mov edi, dword [eax + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d20c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov ecx, dword [eax]
pop ebx
test ecx, ecx
jne 0x401bf3
mov eax, 4
add esp, 0x108
ret
xor eax, eax
add esp, 0x108
ret