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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469e9a
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.0042aab0
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 0x425a25
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x425a31
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 0x425bd5
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 0x425bcd
push 0
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x425bc5
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x425bc5
lea eax, [ebp - 0x270]
push eax
push 0x47abfc
push 1
push dword [ebp - 0x27c]
mov dword [ebp - 0x270], 0
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x425ba2
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.0044bdc0
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 0x425b93
cmp word [esi], ax
jne 0x425b1d
xor ecx, ecx
jmp 0x425b31
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425b22
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x250]
call fcn.0040a110
push 1
sub esp, 8
lea ecx, [ebp - 0x250]
call fcn.0042a640
cmp eax, 0xffffffff
je 0x425b62
inc eax
push eax
push 0
lea ecx, [ebp - 0x250]
call fcn.00409cf0
lea eax, [ebp - 0x250]
push eax
push dword [ebx + 4]
push ebx
call fcn.0042b9e0
mov ecx, eax
mov eax, 0x7fffffe
sub eax, edi
cmp eax, 1
jb 0x425d21
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.0044d60a
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 0x425aa3
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 0x425ea3
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 0x425ea3
cmp dword [ebp - 0x284], 7
jne 0x425ea3
mov eax, dword [ebp - 0x274]
cmp eax, 2
jb 0x425ea3
push eax
call fcn.0044bdc0
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.0042b1a0
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 0x425e6f
mov eax, dword [ebp - 0x274]
shr eax, 1
push eax
push edi
lea ecx, [ebp - 0x268]
call fcn.0041a3d0
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 0x425d19
lea esi, [ebp - 0x268]
lea esp, [esp]
cmp dword [ebp - 0x254], 8
jb 0x425d2b
mov ecx, dword [ebp - 0x268]
jmp 0x425d31
push str.list_T__too_long
call fcn.0044bbb8
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x258]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x425d90
movzx eax, word [esi]
test ax, ax
jne 0x425d77
test edx, edx
je 0x425d5c
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x294]
call fcn.0042a110
push 0x47abfc
lea ecx, [ebp - 0x238]
call fcn.00409270
mov edx, dword [ebp - 0x228]
add esi, 2
jmp 0x425d10
push eax
push 1
lea ecx, [ebp - 0x238]
call fcn.00409440
mov edx, dword [ebp - 0x228]
add esi, 2
jmp 0x425d10
test edx, edx
je 0x425da6
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x294]
call fcn.0042a110
mov edi, dword [ebp - 0x294]
mov esi, dword [ebp - 0x290]
cmp edi, esi
je 0x425e01
mov esi, dword [ebx]
cmp esi, ebx
je 0x425df4
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x425dca
mov ecx, dword [edi]
jmp 0x425dcc
mov ecx, edi
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x425dd7
mov eax, dword [eax]
push ecx
push eax
call fcn.0044f5bb
add esp, 8
test eax, eax
je 0x425ded
mov esi, dword [esi]
cmp esi, ebx
jne 0x425dc0
jmp 0x425df4
mov byte [ebp - 0x269], 1
mov esi, dword [ebp - 0x290]
add edi, 0x18
cmp edi, esi
jne 0x425db6
cmp dword [ebp - 0x224], 8
jb 0x425e18
push dword [ebp - 0x238]
call fcn.0044d639
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 0x425e58
push dword [ebp - 0x298]
mov edx, esi
push ecx
mov ecx, edi
call fcn.004137b0
push edi
call fcn.0044d639
add esp, 0xc
cmp dword [ebp - 0x254], 8
jb 0x425e6f
push dword [ebp - 0x268]
call fcn.0044d639
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2a4]
test esi, esi
je 0x425ea3
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x425ea3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x425ea3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x2a0]
call fcn.0042a870
push dword [ebp - 0x2a0]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x23c], 8
jb 0x425ed3
push dword [ebp - 0x250]
call fcn.0044d639
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 0x425f01
push dword [ebp + 8]
call fcn.0044d639
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.0044c32d
mov esp, ebp
pop ebp
ret