Function at 0x405990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8c79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f4
mov eax, dword [0x4f5b3c]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
push 0x3a
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.NOUNINSTALL
mov byte [ebp - 4], 4
call fcn.004a9c8d
lea esi, [ebx + 4]
mov ecx, esi
call fcn.00438180
push 1
push 0
lea eax, [ebp - 0x14]
push 0x3a
push eax
push 0
mov ecx, esi
call fcn.00437e10
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004354c0
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004a9d0c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004a9c1f
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004aa09a
cmp eax, 0xffffffff
je 0x405a70
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004a72e7
inc eax
lea edx, [ebp - 0x18]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.004a7219
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.004a9d5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004a9c1f
jmp 0x405a78
lea ecx, [ebp - 0x14]
call fcn.004a9baa
lea edi, [ebx + 0x40]
mov ecx, edi
call fcn.004a9baa
lea eax, [ebp - 0x1c]
push 1
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.source
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
je 0x405af8
push 0
lea ecx, [ebp - 0x1c]
call fcn.00434b80
test eax, eax
jne 0x405adf
mov ecx, dword [ebp - 0x1c]
push 0x5c
mov esi, dword [ecx - 8]
lea ecx, [ebp - 0x1c]
call fcn.004a72e7
dec esi
cmp eax, esi
je 0x405ad3
push 0x4ee660
lea ecx, [ebp - 0x1c]
call fcn.004a9faf
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004a9feb
push 0
lea ecx, [ebp - 0x1c]
call fcn.00434b80
test eax, eax
je 0x405af8
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004a9d0c
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405b2d
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
push edx
push 0x4ff13c
push eax
call fcn.004a9e02
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.004a9d5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004a9c1f
mov eax, dword [edi]
mov ecx, 0x4ff364
push eax
call fcn.00417ed0
test eax, eax
mov dword [0x4ffb40], eax
jne 0x405c0c
push eax
lea ecx, [ebp - 0xe4]
call fcn.00415cc0
mov ecx, dword [0x4f5b3c]
mov dword [ebp - 0x18], ecx
mov bl, 9
push 0x18
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004abac8
mov edx, dword [edi]
mov eax, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.004a768f
add esp, 0xc
push 3
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x4fc5e4
call fcn.004a9c8d
push ecx
lea edx, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push edx
mov byte [ebp - 4], 0xa
call fcn.004a9994
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], bl
call fcn.004162a0
push 0
push 0
push 0xc9
lea ecx, [ebp - 0xe4]
call fcn.00416340
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004a9c1f
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xc
call fcn.004a9c1f
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.004a9c1f
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xd
call fcn.00406750
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.004ab31a
jmp 0x40603f
push 0x3a
push 0x4ffb00
push eax
mov ecx, 0x4ff364
call fcn.00418350
cmp eax, 0x3a
jl 0x406030
movsx eax, word [0x4ffb10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx - 8]
test eax, eax
je 0x405c45
push 1
lea ecx, [ebp - 0x14]
call fcn.00434840
mov edx, dword [0x4ffb40]
push 0xa8
push 0x4ffb48
push edx
mov ecx, 0x4ff364
call fcn.00418350
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405c9a
push 0x4ffb48
lea ecx, [ebp - 0x60]
push 0x4ff318
push ecx
call fcn.004a9e68
mov eax, dword [eax]
lea edi, [ebx + 0x30]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.004a9d5c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
jmp 0x405d5b
lea edx, [ebp - 0x5c]
push 1
push edx
lea ecx, [ebp - 0x14]
call fcn.004a719d
mov eax, dword [eax]
push 0x4ee660
push eax
call fcn.00474eb8
add esp, 8
lea ecx, [ebp - 0x5c]
test eax, eax
setne byte [ebp - 0x25]
call fcn.004a9c1f
mov al, byte [ebp - 0x25]
test al, al
je 0x405cda
push 0x4ee660
lea ecx, [ebp - 0x14]
call fcn.004a9faf
lea ecx, [ebp - 0x14]
call fcn.00434be0
test eax, eax
je 0x405d12
lea eax, [ebp - 0x14]
push 0x4ffb48
lea ecx, [ebp - 0x58]
push eax
push ecx
call fcn.004a9e68
mov eax, dword [eax]
lea edi, [ebx + 0x30]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.004a9d5c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
jmp 0x405d5b
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x44]
push edx
push 0x4ff318
push eax
call fcn.004a9e02
push 0x4ffb48
lea ecx, [ebp - 0x48]
push eax
push ecx
mov byte [ebp - 4], 0x10
call fcn.004a9e68
mov eax, dword [eax]
lea edi, [ebx + 0x30]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.004a9d5c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.004a9c1f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.004a9c1f
mov edx, dword [0x4ffbd8]
mov eax, dword [0x4ffbd4]
push edx
push eax
lea ecx, [ebx + 0x48]
push str._d_d
push ecx
call fcn.004a768f
mov edx, dword [ebp - 0x18]
add esp, 0x10
dec edx
mov ecx, ebx
mov dword [ebp - 0x18], edx
call fcn.004071d0
test eax, eax
jne 0x405dd5
mov edx, dword [0x4f5b3c]
mov eax, dword [0x4ffbd0]
mov dword [ebp - 0x3c], edx
mov edx, dword [0x4ff16c]
add edx, eax
mov eax, dword [0x4ff144]
test eax, eax
mov dword [0x4ff16c], edx
je 0x405dc8
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x406
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x3c]
call fcn.004a9c1f
jmp 0x405c45
mov eax, dword [0x4ff144]
test eax, eax
je 0x405e0d
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x4fc5e4
call fcn.004a9c8d
push ecx
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x64], esp
push edi
call fcn.00403850
mov ecx, dword [0x4ff144]
mov byte [ebp - 4], 4
call fcn.0040ea70
mov edx, dword [0x4f5b3c]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
mov byte [ebp - 4], 0x13
call fcn.00434d10
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x14
call fcn.004a9d0c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x13
call fcn.004a9c1f
lea ecx, [ebp - 0x20]
call fcn.00434be0
test eax, eax
jne 0x405e52
lea ecx, [ebp - 0x20]
call fcn.00434eb0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x300]
push ecx
push 0
push 0x4ee7c8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x34]
push eax
call fcn.004a9c8d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x15
call fcn.00436630
lea ecx, [ebp - 0x300]
lea esi, [ebx + 0x44]
push ecx
mov ecx, esi
call fcn.004a9d5c
lea edx, [ebp - 0x4c]
mov ecx, esi
push edx
call fcn.004354c0
push eax
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.004a9d0c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call fcn.004a9c1f
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00434d10
push esi
lea ecx, [ebp - 0x50]
push eax
push ecx
mov byte [ebp - 4], 0x17
call fcn.004a9e02
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x18
call fcn.004a9d5c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x17
call fcn.004a9c1f
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x15
call fcn.004a9c1f
mov eax, dword [esi]
xor edi, edi
push edi
push 0x1001
push eax
mov ecx, 0x4ffbf0
call fcn.004239c0
push esi
lea ecx, [ebp - 0x24]
call fcn.004a9d0c
mov eax, dword [0x4ffbd0]
mov dword [0x4ffb3c], edi
cmp eax, edi
jbe 0x405f89
mov edx, dword [0x4ffa14]
push edi
push edx
push fcn.00402ff0
push fcn.004026d0
call fcn.0045ead0
add esp, 0x10
cmp eax, edi
jg 0x405f4d
cmp dword [0x4ffc04], 1
jne 0x405f89
mov ecx, 0x4ffbf0
call fcn.00423b10
push 0x4ffb40
mov ecx, 0x4ff364
mov dword [0x4ffc04], edi
call fcn.004182b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x13
call fcn.004a9c1f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.004a9c1f
jmp 0x40603f
mov ecx, 0x4ffbf0
call fcn.00423b10
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x1fc]
push eax
push ecx
call fcn.004aaa8b
mov ecx, ebx
call fcn.0040b8e0
mov dx, word [0x4ffbd8]
mov byte [ebp - 0x1ec], al
mov ax, word [0x4ffbd4]
push 0xffffffffffffffff
push edx
push eax
lea ecx, [ebp - 0x74]
call fcn.004a78b6
mov ecx, dword [eax]
mov dword [ebp - 0x1f8], ecx
lea ecx, [ebp - 0x6c]
call fcn.004aad9a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1fc]
push edx
push eax
mov byte [ebp - 4], 0x1a
call fcn.004aabf0
jmp 0x405ffe
mov dword [ebp - 4], 0x15
call fcn.004aadd8
mov ecx, ebx
call fcn.0040c040
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x13
test eax, eax
lea ecx, [ebp - 0x34]
jne 0x40608f
call fcn.004a9c1f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.004a9c1f
push 0x4ffb40
mov ecx, 0x4ff364
call fcn.004182b0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004a9c1f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004a9c1f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004a9c1f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.004a9c1f
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a9c1f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.004a9c1f
jmp 0x405c45