Function at 0x4022c0
Capabilities:
Get common file path
Get file attributes
Set current directory
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push reloc.mscms.dll_UninstallColorProfileA
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x144c
call fcn.00408ee0
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00405b50
lea ecx, [esp + 0x38]
mov dword [esp + 0x1464], 0
call fcn.004066c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1464], 1
call fcn.00407280
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea edi, [esp + 0x750]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0xf2
lea edi, [esp + 0x785]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0xb50]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0xf2
lea edi, [esp + 0xb85]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov edi, 0x424db2
mov esi, edx
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x1464], 2
jne 0x4023af
mov al, byte [ebx + 0x2310]
test al, al
je 0x4023a8
push 0
push edx
push str.Could_not_find_product_key
push 0
call dword [0x42fc7c]
push 0xffffffffffffffff
call fcn.004090ef
lea eax, [ebx + 0x400]
mov esi, eax
mov ecx, edx
mov dword [esp + 0x30], eax
sub esi, edx
nop
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4023c0
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023d0
lea edi, [esp + 0x750]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4023e1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x750]
push ecx
push 0x80000002
lea ecx, [esp + 0x1c]
call fcn.00407400
test eax, eax
je 0x40243b
mov al, byte [ebx + 0x2310]
test al, al
je 0x402434
push 0
lea edx, [esp + 0x754]
push edx
push str.Could_not_find_App_registry
push 0
call dword [0x42fc7c]
push 0xfffffffffffffffe
call fcn.004090ef
lea eax, [esp + 0x10]
push eax
lea edi, [ebx + 0x1400]
push edi
mov esi, 0x400
push str.Game_Registry
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00407360
push edi
push 0x80000002
lea ecx, [esp + 0x1c]
call fcn.00407400
test eax, eax
je 0x402492
mov al, byte [ebx + 0x2310]
test al, al
je 0x40248b
push 0
push edi
push str.Could_not_find_Product_Registry
push 0
call dword [0x42fc7c]
push 0xfffffffffffffffe
call fcn.004090ef
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebx + 0x800]
push edx
push str.Install_Dir
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00407360
lea ecx, [esp + 0x10]
push ecx
lea eax, [ebx + 0xc00]
push eax
push str.Product_GUID
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00407360
lea edx, [esp + 0x10]
push edx
push ebx
push str.Installed_From
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00407360
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x2208]
push ecx
push str.Language
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x104
call fcn.00407360
lea edx, [esp + 0x10]
push edx
lea eax, [ebx + 0x1800]
push eax
push str.Folder
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00407360
lea edx, [esp + 0x140]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402531
lea edi, [esp + 0x140]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402543
mov cx, word [0x424ed8]
mov word [edi], cx
lea edi, [esp + 0x140]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402560
mov edx, dword [0x424ed4]
lea eax, [esp + 0x140]
push eax
push 0x80000002
lea ecx, [esp + 0x1c]
mov dword [edi], edx
call fcn.00407400
test eax, eax
jne 0x4025a1
lea ecx, [ebx + 0x230c]
push ecx
push str.Language
lea ecx, [esp + 0x1c]
call fcn.00407390
jmp 0x4025ab
mov dword [ebx + 0x230c], 1
lea eax, [ebx + 0xc00]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025b3
lea edi, [esp + 0xb50]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4025c4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0xb50]
push edx
rep movsb byte es:[edi], byte [esi]
push 0x80000002
lea ecx, [esp + 0x1c]
call fcn.00407400
test eax, eax
je 0x40261e
mov al, byte [ebx + 0x2310]
test al, al
je 0x402617
push 0
lea eax, [esp + 0xb54]
push eax
push str.Could_not_find_Uninstall_Entry
push 0
call dword [0x42fc7c]
push 0xfffffffffffffffe
call fcn.004090ef
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebx + 0x1c00]
push edx
mov edi, 0x400
push str.DisplayName
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.00407360
lea ecx, [esp + 0x10]
push ecx
lea eax, [ebx + 0x1000]
push eax
push str.LogFile
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], eax
call fcn.00407360
lea esi, [ebx + 0x2000]
push esi
lea ecx, [esp + 0x24]
call fcn.00405680
lea edx, [esp + 0x648]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea eax, [esp + 0x105c]
push eax
lea ecx, [esp + 0x650]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edx, dword [ebp + 8]
lea eax, [ebx + 0x2104]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.004060d0
lea eax, [esp + 0x1058]
mov edi, esi
lea ebx, [ebx]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4026e4
test cl, cl
je 0x4026e0
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4026e4
add edi, 2
add eax, 2
test cl, cl
jne 0x4026c0
xor eax, eax
jmp 0x4026e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402819
lea edi, [ebx + 0x2104]
push edi
push esi
lea eax, [esp + 0x250]
push str._s_s
push eax
call fcn.00408f1d
add esp, 0x10
lea ecx, [esp + 0x248]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004061a0
test al, al
je 0x402769
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x248]
push ecx
call fcn.0040a1ff
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x248]
push edx
lea ecx, [esp + 0x24]
call fcn.004058e0
test al, al
je 0x4027a6
mov al, byte [ebx + 0x2310]
test al, al
je 0x40279f
push 0
lea eax, [esp + 0x24c]
push eax
push str.Existing_Uninstall_Running
push 0
call dword [0x42fc7c]
push 0
call fcn.004090ef
mov ebx, dword [ebp + 8]
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 1
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.00406ce0
push ebx
lea ecx, [esp + 0xf54]
push ecx
lea ecx, [esp + 0x40]
call fcn.00406140
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
push esi
lea edx, [esp + 0x250]
push str._s_s
push edx
call fcn.00408f1d
mov eax, dword [esp + 0x40]
add esp, 0x10
push eax
push esi
lea ecx, [esp + 0x250]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405460
push 0
call fcn.004090ef
push 0
push 0
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x40]
push 1
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push esi
push edx
lea ecx, [esp + 0x5c]
call fcn.00406ce0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1464], 1
call fcn.004073c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1464], 0
call fcn.00401390
lea ecx, [esp + 0x20]
mov dword [esp + 0x1464], 0xffffffff
call fcn.00401390
mov ecx, dword [esp + 0x145c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8