Function at 0x4066f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eded
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, str.Starting_Installation.
mov dword [ebp - 0x10], 0
mov dword [ebx], eax
mov eax, str.Starting_Uninstallation.
cmp dword [0x5ffc30], 0
cmove eax, ecx
push eax
call fcn.004290c0
add esp, 4
call fcn.0040a500
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00406170
push 0
push dword [0x5ffc58]
mov ecx, 0x5ffc40
call fcn.0040aa50
push 0x428e40
push 0
push dword [0x5ffc60]
mov ecx, 0x5ffc40
push str.InitSession
call fcn.0040b290
cmp dword [0x5ffc30], 0
jne 0x4067c2
mov eax, dword [ebx]
push ecx
mov esi, esp
mov dword [ebp + 8], esi
mov eax, dword [eax + 0x2c]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408e00
add esp, 8
mov ecx, 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4067c5
mov byte [ebp + 0xb], cl
jmp 0x4067c9
mov ecx, dword [ebp - 0x10]
mov byte [ebp + 0xb], 0
test cl, 1
je 0x4067e9
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x40681b
push ecx
mov ecx, esp
push str.cond_pkg
call fcn.004021d0
mov ecx, ebx
call fcn.00403e20
test eax, eax
jne 0x40681b
mov dword [0x5ffc3c], 1
push str.Installation_canceled.
jmp 0x40699c
mov eax, dword [ebx]
xor esi, esi
cmp dword [eax + 0x38], esi
jle 0x406966
xor ecx, ecx
mov dword [ebp + 8], ecx
nop dword [eax]
cmp dword [0x5ffc38], 0
jne 0x406966
test ecx, ecx
js 0x4069b8
cmp esi, dword [eax + 0x38]
jge 0x4069b8
mov edi, dword [eax + 0x34]
mov eax, dword [edi + ecx + 0x10]
add edi, ecx
cmp dword [0x5ffc30], 0
je 0x406865
cmp eax, 1
jmp 0x406867
test eax, eax
jne 0x406951
cmp dword [edi + 0x14], 0
jne 0x406951
push dword [edi + 4]
push str.Action:__s...
call fcn.004290c0
push esi
push dword [0x5ffc58]
lea eax, [ebx + 4]
push 0x5a1438
push eax
call fcn.00404830
mov ecx, dword [ebx]
add esp, 0x18
push esi
call fcn.0040d2b0
test al, al
je 0x406934
mov eax, dword [ebx]
cmp dword [eax + 0x18], 0
je 0x40690a
push 0
push dword [ebx + 4]
call fcn.0055fefe
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40690a
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x14]
call fcn.004020d0
push 0x62
push dword [eax]
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call fcn.004277f0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40690a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebx + 4]
call fcn.0055ffd7
test eax, eax
je 0x406925
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x406934
push 0
push dword [ebx + 4]
push 3
call fcn.004277f0
add esp, 0xc
push esi
push edi
mov ecx, ebx
call fcn.00405ed0
push dword [0x5ffc58]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040a500
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
inc esi
add ecx, 0xb8
mov dword [ebp + 8], ecx
cmp esi, dword [eax + 0x38]
jl 0x406830
cmp dword [0x5ffc30], 0
je 0x406980
mov dword [0x5ffc38], 0
push str.Uninstallation_complete.
jmp 0x40699c
cmp dword [0x5ffc38], 0
je 0x406990
push str.Installation_aborted
jmp 0x40699c
mov ecx, ebx
call fcn.00403630
push str.Installation_complete.
call fcn.004290c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0042a6ab
int3