Function at 0x41cba0
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b3aa
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x486850]
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 dword [ebp - 4], 0
xor eax, eax
mov byte [ebp - 0x269], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
xor edi, edi
push edi
mov byte [ebp - 4], 1
push edi
mov dword [ebp - 0x29c], edi
call fcn.004225a0
mov ebx, eax
mov dword [ebp - 0x2a0], ebx
push 0x104
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41cc45
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x41cc51
lea eax, [ebp + 8]
lea ecx, [ebp - 0x288]
push ecx
push str.MSIDBOPEN_READONLY
push eax
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
jne 0x41cdf5
lea eax, [ebp - 0x278]
push eax
push str.SELECT_FileName_FROM_File
push dword [ebp - 0x288]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
jne 0x41cded
push 0
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x41cde5
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x41cde5
lea eax, [ebp - 0x270]
push eax
push 0x468378
push 1
push dword [ebp - 0x27c]
mov dword [ebp - 0x270], 0
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x41cdc2
mov eax, dword [ebp - 0x270]
inc eax
xor ecx, ecx
mov dword [ebp - 0x270], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043c839
add esp, 4
mov esi, eax
lea eax, [ebp - 0x270]
push eax
push esi
push 1
push dword [ebp - 0x27c]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
test eax, eax
jne 0x41cdb3
cmp word [esi], ax
jne 0x41cd3d
xor ecx, ecx
jmp 0x41cd51
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cd42
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x250]
call fcn.00402900
push 1
sub esp, 8
lea ecx, [ebp - 0x250]
call fcn.00421cc0
cmp eax, 0xffffffff
je 0x41cd82
inc eax
push eax
push 0
lea ecx, [ebp - 0x250]
call fcn.00402400
lea eax, [ebp - 0x250]
push eax
push dword [ebx + 4]
push ebx
call fcn.00423e60
mov ecx, eax
mov eax, 0x7fffffe
sub eax, edi
cmp eax, 1
jb 0x41cf41
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
inc edi
mov dword [ebp - 0x29c], edi
mov dword [eax], ecx
push esi
call fcn.0043d412
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
add esp, 4
push dword [ebp - 0x27c]
call esi
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
je 0x41ccc3
push dword [ebp - 0x278]
call esi
push dword [ebp - 0x288]
call esi
lea eax, [ebp - 0x280]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d0c3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push eax
push 0
lea eax, [ebp - 0x284]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x280]
call esi
test eax, eax
jne 0x41d0c3
cmp dword [ebp - 0x284], 7
jne 0x41d0c3
mov eax, dword [ebp - 0x274]
cmp eax, 2
jb 0x41d0c3
push eax
call fcn.0043c839
add esp, 4
mov byte [ebp - 0x298], 0
push dword [ebp - 0x298]
lea ecx, [ebp - 0x2a4]
push eax
mov dword [ebp - 0x2a8], eax
call fcn.00423230
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x2a8]
lea eax, [ebp - 0x274]
push eax
push edi
lea eax, [ebp - 0x284]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x280]
call esi
test eax, eax
jne 0x41d08f
mov eax, dword [ebp - 0x274]
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x268]
call fcn.004145d0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
xor edx, edx
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edx
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x254], 8
mov esi, dword [ebp - 0x268]
jae 0x41cf39
lea esi, [ebp - 0x268]
lea esp, [esp]
cmp dword [ebp - 0x254], 8
jb 0x41cf4b
mov ecx, dword [ebp - 0x268]
jmp 0x41cf51
push str.list_T__too_long
call fcn.0043c7bd
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x258]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x41cfb0
movzx eax, word [esi]
test ax, ax
jne 0x41cf97
test edx, edx
je 0x41cf7c
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x294]
call fcn.004216b0
push 0x468378
lea ecx, [ebp - 0x238]
call fcn.004019b0
mov edx, dword [ebp - 0x228]
add esi, 2
jmp 0x41cf30
push eax
push 1
lea ecx, [ebp - 0x238]
call fcn.00401a50
mov edx, dword [ebp - 0x228]
add esi, 2
jmp 0x41cf30
test edx, edx
je 0x41cfc6
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x294]
call fcn.004216b0
mov edi, dword [ebp - 0x294]
mov esi, dword [ebp - 0x290]
cmp edi, esi
je 0x41d021
mov esi, dword [ebx]
cmp esi, ebx
je 0x41d014
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x41cfea
mov ecx, dword [edi]
jmp 0x41cfec
mov ecx, edi
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x41cff7
mov eax, dword [eax]
push ecx
push eax
call fcn.0043fafd
add esp, 8
test eax, eax
je 0x41d00d
mov esi, dword [esi]
cmp esi, ebx
jne 0x41cfe0
jmp 0x41d014
mov byte [ebp - 0x269], 1
mov esi, dword [ebp - 0x290]
add edi, 0x18
cmp edi, esi
jne 0x41cfd6
cmp dword [ebp - 0x224], 8
jb 0x41d038
push dword [ebp - 0x238]
call fcn.0043d3af
add esp, 4
mov edi, dword [ebp - 0x294]
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
test edi, edi
je 0x41d078
push dword [ebp - 0x298]
mov edx, esi
push ecx
mov ecx, edi
call fcn.0040b890
push edi
call fcn.0043d3af
add esp, 0xc
cmp dword [ebp - 0x254], 8
jb 0x41d08f
push dword [ebp - 0x268]
call fcn.0043d3af
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2a4]
test esi, esi
je 0x41d0c3
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x41d0c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x41d0c3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x2a0]
call fcn.00422380
push dword [ebp - 0x2a0]
call fcn.0043d3af
add esp, 4
cmp dword [ebp - 0x23c], 8
jb 0x41d0f3
push dword [ebp - 0x250]
call fcn.0043d3af
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
jb 0x41d121
push dword [ebp + 8]
call fcn.0043d3af
add esp, 4
mov al, byte [ebp - 0x269]
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.0043d3b4
mov esp, ebp
pop ebp
ret