Function at 0x406fe0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595e9d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6001c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [ebp - 0x24], 0
cmp dword [0x604b90], 0
je 0x407036
push str.Starting_Uninstallation.
call fcn.00435650
add esp, 4
jmp 0x407043
push str.Starting_Installation.
call fcn.00435650
add esp, 4
call fcn.0040a620
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
call fcn.00406920
push 0
mov ecx, 0x604bb8
call fcn.00402790
push eax
mov ecx, 0x604ba0
call fcn.0040af30
push 0x435400
push 0
mov ecx, 0x604bc0
call fcn.00402790
push eax
push str.InitSession
mov ecx, 0x604ba0
call fcn.0040b940
cmp dword [0x604b90], 0
jne 0x4070dd
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
add eax, 0x30
push eax
call fcn.00401fd0
lea ecx, [ebp - 0x34]
push ecx
call fcn.00408f70
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
call fcn.00407360
movzx ecx, al
test ecx, ecx
jne 0x4070dd
mov dword [ebp - 0x28], 1
jmp 0x4070e4
mov dword [ebp - 0x28], 0
mov dl, byte [ebp - 0x28]
mov byte [ebp - 0xd], dl
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4070fe
and dword [ebp - 0x1c], 0xfffffffe
lea ecx, [ebp - 0x34]
call fcn.004023e0
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x407143
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.cond_pkg
call fcn.004020c0
mov ecx, dword [ebp - 0x14]
call fcn.004042d0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x407143
mov dword [0x604b9c], 1
push str.Installation_canceled.
call fcn.00435650
add esp, 4
jmp 0x407347
mov dword [ebp - 0x18], 0
jmp 0x407155
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, 0x34
call fcn.00405ab0
cmp dword [ebp - 0x18], eax
jge 0x4072f8
cmp dword [0x604b98], 0
je 0x407179
jmp 0x4072f8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
add edx, 0x34
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00402750
mov dword [ebp - 0x20], eax
cmp dword [0x604b90], 0
je 0x4071a7
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x10], 1
je 0x4071a7
jmp 0x40714c
cmp dword [0x604b90], 0
jne 0x4071bb
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x10], 0
je 0x4071bb
jmp 0x40714c
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0
je 0x4071c6
jmp 0x40714c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
push edx
push str.Action:__s...
call fcn.00435650
add esp, 8
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [0x604bb8]
push edx
push 0x5a803c
mov eax, dword [ebp - 0x40]
push eax
call fcn.00405320
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.0040dea0
movzx ecx, al
test ecx, ecx
je 0x4072cd
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
cmp dword [eax + 0x18], 0
je 0x407288
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
call fcn.0056b798
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x407288
push 0x68
push 0x5a8048
lea ecx, [ebp - 0x50]
call fcn.00402040
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
call fcn.00402790
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.004335f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004023e0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
call fcn.0056b871
test eax, eax
je 0x4072b5
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4072cd
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
push 3
call fcn.004335f0
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00406700
mov ecx, 0x604bb8
call fcn.00402790
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040a620
jmp 0x40714c
cmp dword [0x604b90], 0
je 0x40731a
mov dword [0x604b98], 0
push str.Uninstallation_complete.
call fcn.00435650
add esp, 4
jmp 0x407347
cmp dword [0x604b98], 0
je 0x407332
push str.Installation_aborted
call fcn.00435650
add esp, 4
jmp 0x407347
mov ecx, dword [ebp - 0x14]
call fcn.00403a60
push str.Installation_complete.
call fcn.00435650
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4