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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469e5a
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4a5590]
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.0042aa70
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 0x4259f5
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x425a01
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 0x425ba5
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 0x425b9d
push 0
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x425b95
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x425b95
lea eax, [ebp - 0x270]
push eax
push 0x47ac50
push 1
push dword [ebp - 0x27c]
mov dword [ebp - 0x270], 0
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x425b72
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.0044bd80
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 0x425b63
cmp word [esi], ax
jne 0x425aed
xor ecx, ecx
jmp 0x425b01
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425af2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x250]
call fcn.0040a100
push 1
sub esp, 8
lea ecx, [ebp - 0x250]
call fcn.0042a600
cmp eax, 0xffffffff
je 0x425b32
inc eax
push eax
push 0
lea ecx, [ebp - 0x250]
call fcn.00409ce0
lea eax, [ebp - 0x250]
push eax
push dword [ebx + 4]
push ebx
call fcn.0042b9a0
mov ecx, eax
mov eax, 0x7fffffe
sub eax, edi
cmp eax, 1
jb 0x425cf1
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.0044d5ca
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 0x425a73
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 0x425e73
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 0x425e73
cmp dword [ebp - 0x284], 7
jne 0x425e73
mov eax, dword [ebp - 0x274]
cmp eax, 2
jb 0x425e73
push eax
call fcn.0044bd80
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.0042b160
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 0x425e3f
mov eax, dword [ebp - 0x274]
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x268]
call fcn.0041a390
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 0x425ce9
lea esi, [ebp - 0x268]
lea esp, [esp]
cmp dword [ebp - 0x254], 8
jb 0x425cfb
mov ecx, dword [ebp - 0x268]
jmp 0x425d01
push str.list_T__too_long
call fcn.0044bb78
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x258]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x425d60
movzx eax, word [esi]
test ax, ax
jne 0x425d47
test edx, edx
je 0x425d2c
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x294]
call fcn.0042a0d0
push 0x47ac50
lea ecx, [ebp - 0x238]
call fcn.00409260
mov edx, dword [ebp - 0x228]
add esi, 2
jmp 0x425ce0
push eax
push 1
lea ecx, [ebp - 0x238]
call fcn.00409430
mov edx, dword [ebp - 0x228]
add esi, 2
jmp 0x425ce0
test edx, edx
je 0x425d76
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x294]
call fcn.0042a0d0
mov edi, dword [ebp - 0x294]
mov esi, dword [ebp - 0x290]
cmp edi, esi
je 0x425dd1
mov esi, dword [ebx]
cmp esi, ebx
je 0x425dc4
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x425d9a
mov ecx, dword [edi]
jmp 0x425d9c
mov ecx, edi
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x425da7
mov eax, dword [eax]
push ecx
push eax
call fcn.0044f57b
add esp, 8
test eax, eax
je 0x425dbd
mov esi, dword [esi]
cmp esi, ebx
jne 0x425d90
jmp 0x425dc4
mov byte [ebp - 0x269], 1
mov esi, dword [ebp - 0x290]
add edi, 0x18
cmp edi, esi
jne 0x425d86
cmp dword [ebp - 0x224], 8
jb 0x425de8
push dword [ebp - 0x238]
call fcn.0044d5f9
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 0x425e28
push dword [ebp - 0x298]
mov edx, esi
push ecx
mov ecx, edi
call fcn.00413780
push edi
call fcn.0044d5f9
add esp, 0xc
cmp dword [ebp - 0x254], 8
jb 0x425e3f
push dword [ebp - 0x268]
call fcn.0044d5f9
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2a4]
test esi, esi
je 0x425e73
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x425e73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x425e73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x2a0]
call fcn.0042a830
push dword [ebp - 0x2a0]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x23c], 8
jb 0x425ea3
push dword [ebp - 0x250]
call fcn.0044d5f9
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 0x425ed1
push dword [ebp + 8]
call fcn.0044d5f9
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.0044c2ed
mov esp, ebp
pop ebp
ret