Function at 0x406460
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42f0c2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x43e0c0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x43e0c0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0xc1c]
push 0x432870
push edi
call fcn.00408c80
add esp, 8
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4064ca
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x23c], 0
call fcn.00404c70
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
jne 0x406529
lea eax, [ebp - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406858
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, esi
call fcn.00403210
test eax, eax
je 0x40657b
push str.64bitWebDav_Inst
push edi
call fcn.00408c80
add esp, 8
mov ecx, esi
call fcn.00403c30
test eax, eax
push ebp
push 0x104
je 0x40656a
lea ecx, [esp + 0x2c]
push ecx
push str.none
push str.WebDAVMSI64_J
jmp 0x4065ba
lea edx, [esp + 0x2c]
push edx
push str.none
push str.WebDAVMSI64_E
jmp 0x4065ba
push str.32bitWebDav_Inst
push edi
call fcn.00408c80
add esp, 8
mov ecx, esi
call fcn.00403c30
test eax, eax
push ebp
push 0x104
je 0x4065ab
lea eax, [esp + 0x2c]
push eax
push str.none
push str.WebDAVMSI_J
jmp 0x4065ba
lea ecx, [esp + 0x2c]
push ecx
push str.none
push str.WebDAVMSI_E
push str.INSTALL_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.004051a0
mov eax, dword [esp + 0x10]
push str.none
push eax
mov byte [esp + 0x240], 1
call fcn.0041a3f1
add esp, 8
test eax, eax
je 0x4067f6
mov ecx, dword [esp + 0x10]
push 0x431660
push ecx
call fcn.0041a3f1
add esp, 8
test eax, eax
je 0x4067f6
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406629
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0x23c], 2
call fcn.004062e0
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x20]
push str.__s_s_
push ecx
mov byte [esp + 0x248], 3
call fcn.00403c10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x238], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4066c4
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
push str.__qb
push str.__Lie__webdav_instlog.txt
push ecx
push str.__i
lea edx, [esp + 0x24]
push str._s_s_s_s
push edx
mov byte [esp + 0x250], 4
call fcn.00403c10
mov ebp, dword [esp + 0x2c]
push ebp
push str.:_COMMANDLINE_:__s
push edi
call fcn.00408c80
push str.msiexec.exe
lea eax, [esp + 0x150]
push eax
push str.SysDir:_s_EXE:_s
push edi
call fcn.00408c80
add esp, 0x34
push ebp
push str.msiexec.exe
lea ecx, [esp + 0x130]
add esi, 0x528
push ecx
mov ecx, esi
call fcn.00401080
test eax, eax
jne 0x40678e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push eax
push edx
push str.WebDav
push edi
call fcn.00408c80
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.004013e0
lea ecx, [esp + 0x18]
call fcn.004013e0
lea ecx, [esp + 0x10]
call fcn.004013e0
lea ecx, [esp + 0x1c]
call fcn.004013e0
xor eax, eax
jmp 0x406858
call fcn.0040b7c2
mov ecx, dword [eax + 4]
call fcn.0040d214
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x23c], 5
call fcn.00401130
mov eax, dword [esp + 0x10]
push eax
push 0x432748
push edi
call fcn.00408c80
add esp, 0xc
lea ecx, [esp + 0x23]
mov byte [esp + 0x238], 4
call fcn.00403ed0
lea ecx, [esp + 0x14]
call fcn.004013e0
lea ecx, [esp + 0x18]
call fcn.004013e0
lea ecx, [esp + 0x10]
call fcn.004013e0
lea ecx, [esp + 0x1c]
call fcn.004013e0
jmp 0x406853
push 0x432730
push edi
call fcn.00408c80
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x238], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40682c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406853
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00419953
add esp, 0x22c
ret