Function at 0x407640
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597c1d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6031c0]
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 [0x607b90], 0
je 0x407696
push str.Starting_Uninstallation.
call fcn.00435d80
add esp, 4
jmp 0x4076a3
push str.Starting_Installation.
call fcn.00435d80
add esp, 4
call fcn.0040ab10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
call fcn.00406ed0
cmp dword [0x607b90], 0
jne 0x407705
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.00409590
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.00407980
movzx ecx, al
test ecx, ecx
jne 0x407705
mov dword [ebp - 0x28], 1
jmp 0x40770c
mov dword [ebp - 0x28], 0
mov dl, byte [ebp - 0x28]
mov byte [ebp - 0xd], dl
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x407726
and dword [ebp - 0x1c], 0xfffffffe
lea ecx, [ebp - 0x34]
call fcn.004023e0
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x40776b
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.cond_pkg
call fcn.004020c0
mov ecx, dword [ebp - 0x14]
call fcn.00404370
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40776b
mov dword [0x607b9c], 1
push str.Installation_canceled.
call fcn.00435d80
add esp, 4
jmp 0x40796f
mov dword [ebp - 0x18], 0
jmp 0x40777d
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.00405e60
cmp dword [ebp - 0x18], eax
jge 0x407920
cmp dword [0x607b98], 0
je 0x4077a1
jmp 0x407920
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 [0x607b90], 0
je 0x4077cf
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x10], 1
je 0x4077cf
jmp 0x407774
cmp dword [0x607b90], 0
jne 0x4077e3
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x10], 0
je 0x4077e3
jmp 0x407774
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0
je 0x4077ee
jmp 0x407774
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
push edx
push str.Action:__s...
call fcn.00435d80
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 [0x607bb8]
push edx
push 0x5aa024
mov eax, dword [ebp - 0x40]
push eax
call fcn.004056d0
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.0040d320
movzx ecx, al
test ecx, ecx
je 0x4078f5
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
cmp dword [eax + 0x18], 0
je 0x4078b0
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
call fcn.0056bd68
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4078b0
push 0x68
push 0x5aa030
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.00433d50
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.0056be41
test eax, eax
je 0x4078dd
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4078f5
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402790
push eax
push 3
call fcn.00433d50
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00406ab0
mov ecx, 0x607bb8
call fcn.00402790
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040ab10
jmp 0x407774
cmp dword [0x607b90], 0
je 0x407942
mov dword [0x607b98], 0
push str.Uninstallation_complete.
call fcn.00435d80
add esp, 4
jmp 0x40796f
cmp dword [0x607b98], 0
je 0x40795a
push str.Installation_aborted
call fcn.00435d80
add esp, 4
jmp 0x40796f
mov ecx, dword [ebp - 0x14]
call fcn.00403990
push str.Installation_complete.
call fcn.00435d80
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4