Function at 0x402f40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51bd8c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x563fac]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov eax, dword [0x563fac]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov esi, 0x100
push 0x5466cc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call fcn.00401c80
xor ebx, ebx
mov dword [esp + 0x238], ebx
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x402fbc
push esi
lea ecx, [esp + 0x10]
call fcn.00401a60
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x4030c6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004f66d2
add esp, 8
cmp eax, ebx
jl 0x403340
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x403340
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0xc]
xor ecx, ecx
push 1
mov word [edx + eax*2], cx
push 0x54699c
lea ecx, [esp + 0x14]
call fcn.004034e0
push 9
push 0x5468e8
lea ecx, [esp + 0x14]
call fcn.004034e0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.msi.dll_MsiOpenProductW
test eax, eax
je 0x40305f
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4030e5
push 0x5469a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.00401c80
mov byte [esp + 0x238], 1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x403119
mov ecx, dword [esp + 0x18]
push ecx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [esp + 0x238], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004f5c3a
add esp, 0x230
ret
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x40315c
mov edx, dword [esp + 0x10]
push edx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x18]
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov byte [esp + 0x238], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4030ba
push 0x5469d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call fcn.00401c80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 2
mov edx, dword [esp + 0x10]
push ecx
push edx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x4032e5
lea ecx, [ecx]
push 0x5469d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], esi
call fcn.00401c80
push 0x1fe
lea ecx, [esp + 0x32]
xor eax, eax
push ebx
mov byte [esp + 0x240], 3
push ecx
mov word [esp + 0x38], ax
call fcn.004f7470
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push 1
push ecx
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x403269
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4031f0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x28]
call fcn.00401b30
mov eax, dword [esp + 0x20]
push str.ProductCode
push eax
call fcn.004f6889
add esp, 8
cmp eax, ebx
je 0x4032b0
mov byte [esp + 0x238], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403250
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
je 0x403190
jmp 0x4032e5
mov eax, dword [esp + 0x1c]
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x10]
push ecx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edx, dword [esp + 0x18]
push edx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [esp + 0x20]
call fcn.004016c0
lea ecx, [esp + 0x24]
call fcn.004016c0
lea ecx, [esp + 0x14]
call fcn.004016c0
lea ecx, [esp + 0xc]
call fcn.004016c0
jmp 0x4030f1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push 2
push edx
mov dword [esp + 0x38], esi
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x403269
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.00401c00
lea ecx, [esp + 0x20]
call fcn.004016c0
mov ecx, dword [esp + 0x1c]
push ecx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edx, dword [esp + 0x10]
push edx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x18]
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x24]
push ecx
call sub.msi.dll_MsiRecordGetStringA
cmp eax, 2
je 0x40331b
cmp eax, 5
jne 0x403290
lea ecx, [esp + 0x24]
call fcn.004016c0
lea ecx, [esp + 0x14]
call fcn.004016c0
lea ecx, [esp + 0xc]
call fcn.004016c0
mov eax, 1
jmp 0x4030f3
push 0x80070057
call fcn.00401dd0
int3