Function at 0x405c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439731
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x54]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405c55
mov ecx, dword [str._ddinstall.]
fldz
mov edx, dword [0x43d7b0]
fstp qword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [0x43d7b4]
mov dword [eax + 4], edx
mov dx, word [0x43d7b8]
mov dword [eax + 8], ecx
mov cl, byte [0x43d7ba]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
lea ecx, [esp + 0x34]
call fcn.0041def5
push 0
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x178], 0
call fcn.0041df8a
test eax, eax
je 0x405ed7
lea ecx, [ecx]
lea ecx, [esp + 0x34]
call fcn.0041dbe2
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], eax
call fcn.0041deba
test eax, eax
jne 0x405ecc
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x38]
call edx
test eax, eax
jne 0x405ecc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.0041e138
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x170], 1
jle 0x405e05
push 0x5c
push eax
call fcn.00423901
add esp, 8
test eax, eax
je 0x405e05
mov edx, dword [esp + 0x10]
sub eax, edx
mov ecx, eax
test ecx, ecx
jle 0x405e05
lea esp, [esp]
mov eax, dword [edx - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401f70
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x170], 2
cmp eax, esi
je 0x405db4
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x405da6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x405da6
push eax
call fcn.004016c0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x405d9d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x405db4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401730
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x170], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jle 0x405e05
push 0x5c
push eax
call fcn.00423901
add esp, 8
test eax, eax
je 0x405e05
mov edx, dword [esp + 0x10]
sub eax, edx
mov ecx, eax
test ecx, ecx
jg 0x405d40
lea ecx, [esp + 0x34]
call fcn.0041dc1e
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, edx
and edx, 0x7fffffff
and eax, 0x80000000
mov dword [esp + 0x30], edx
fild qword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 0
fild qword [esp + 0x4c]
push str.RemoveUninstaller.exe
push ecx
fchs
faddp st(1)
fst qword [esp + 0x2c]
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
call fcn.00423ae2
add esp, 8
test eax, eax
sete al
test al, al
jne 0x405e98
mov edx, dword [esp + 0x10]
push str.Uninstall.exe
push edx
call fcn.00423ae2
add esp, 8
test eax, eax
sete al
test al, al
jne 0x405e98
mov eax, dword [esp + 0x10]
push 0x43d770
push eax
call fcn.00423ae2
add esp, 8
test eax, eax
sete al
test al, al
je 0x405ea4
fld qword [esp + 0x24]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x170], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ecc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
jne 0x405cc0
fld qword [esp + 0x14]
lea ecx, [esp + 0x34]
fmul qword [0x43d768]
mov dword [esp + 0x170], 0xffffffff
fstp qword [esp + 0x24]
call fcn.0041df1b
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00423763
mov esp, ebp
pop ebp
ret