Function at 0x4066c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a4ad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f31c0]
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 [0x5f7b90], 0
cmove eax, ecx
push eax
call fcn.00428fe0
add esp, 4
call fcn.0040a510
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00406140
push 0
push dword [0x5f7bb8]
mov ecx, 0x5f7ba0
call fcn.0040aa60
push 0x428d90
push 0
push dword [0x5f7bc0]
mov ecx, 0x5f7ba0
push str.InitSession
call fcn.0040b2a0
cmp dword [0x5f7b90], 0
jne 0x406792
mov eax, dword [ebx]
push ecx
mov esi, esp
mov dword [ebp + 8], esi
mov eax, dword [eax + 0x30]
sub eax, 0x10
push eax
call fcn.00403fb0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408df0
add esp, 8
mov ecx, 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x406795
mov byte [ebp + 0xb], cl
jmp 0x406799
mov ecx, dword [ebp - 0x10]
mov byte [ebp + 0xb], 0
test cl, 1
je 0x4067b9
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x4067eb
push ecx
mov ecx, esp
push str.cond_pkg
call fcn.004021a0
mov ecx, ebx
call fcn.00403dd0
test eax, eax
jne 0x4067eb
mov dword [0x5f7b9c], 1
push str.Installation_canceled.
jmp 0x40696c
mov eax, dword [ebx]
xor esi, esi
cmp dword [eax + 0x3c], esi
jle 0x406936
xor ecx, ecx
mov dword [ebp + 8], ecx
nop dword [eax]
cmp dword [0x5f7b98], 0
jne 0x406936
test ecx, ecx
js 0x406988
cmp esi, dword [eax + 0x3c]
jge 0x406988
mov edi, dword [eax + 0x38]
mov eax, dword [edi + ecx + 0x10]
add edi, ecx
cmp dword [0x5f7b90], 0
je 0x406835
cmp eax, 1
jmp 0x406837
test eax, eax
jne 0x406921
cmp dword [edi + 0x14], 0
jne 0x406921
push dword [edi + 4]
push str.Action:__s...
call fcn.00428fe0
push esi
push dword [0x5f7bb8]
lea eax, [ebx + 4]
push 0x59c438
push eax
call fcn.00404820
mov ecx, dword [ebx]
add esp, 0x18
push esi
call fcn.0040d2d0
test al, al
je 0x406904
mov eax, dword [ebx]
cmp dword [eax + 0x18], 0
je 0x4068da
push 0
push dword [ebx + 4]
call fcn.0055f9d8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4068da
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x14]
call fcn.004020a0
push 0x68
push dword [eax]
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call fcn.004279c0
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 0x4068da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebx + 4]
call fcn.0055fab1
test eax, eax
je 0x4068f5
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x406904
push 0
push dword [ebx + 4]
push 3
call fcn.004279c0
add esp, 0xc
push esi
push edi
mov ecx, ebx
call fcn.00405ec0
push dword [0x5f7bb8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040a510
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
inc esi
add ecx, 0xb8
mov dword [ebp + 8], ecx
cmp esi, dword [eax + 0x3c]
jl 0x406800
cmp dword [0x5f7b90], 0
je 0x406950
mov dword [0x5f7b98], 0
push str.Uninstallation_complete.
jmp 0x40696c
cmp dword [0x5f7b98], 0
je 0x406960
push str.Installation_aborted
jmp 0x40696c
mov ecx, ebx
call fcn.004035e0
push str.Installation_complete.
call fcn.00428fe0
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.0042a442
int3