Function at 0x409650
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc98
mov eax, dword [0x425004]
xor eax, esp
mov dword [esp + 0xc94], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
xor eax, eax
xor ecx, ecx
push edi
mov word [esi], ax
movzx eax, word [ebp]
test ax, ax
je 0x409a1c
mov edi, dword [esp + 0xcac]
mov edx, eax
nop dword [eax]
cmp dx, 0x25
jne 0x4099ee
xor eax, eax
test ecx, ecx
jne 0x4096b4
lea ecx, [esp + 0xa0]
mov word [esp + 0xa0], ax
jmp 0x409a0a
mov word [ecx], ax
xor bl, bl
lea eax, [esp + 0xa0]
mov byte [esp + 0x17], bl
push str.TEMP
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x4096e5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov bl, 1
jmp 0x4098a5
lea eax, [esp + 0xa0]
push str.PROGRAM
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x409716
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4098a5
xor al, al
jmp 0x409a23
lea eax, [esp + 0xa0]
push str.PROGRAM_BASE
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x40979c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409734
sub ecx, edx
mov eax, edi
sar ecx, 1
mov edx, str._PROGRAM_
sub eax, ecx
mov ecx, esi
push eax
call fcn.00409650
add esp, 4
test al, al
je 0x40970f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409760
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jb 0x4098a5
add ecx, 0xfffffffc
push str..exe
lea ebx, [esi + ecx*2]
push ebx
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x4098a1
mov word [ebx], ax
jmp 0x4098a1
lea eax, [esp + 0xa0]
push 0x422af0
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x4097e4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x422af8
lea eax, [esp + 0x28]
push 0x80
push eax
call fcn.00401040
push edi
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00409a50
add esp, 0x14
jmp 0x4098a5
lea eax, [esp + 0xa0]
push str.HOME
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x40981a
push edi
lea edx, [eax + 0x28]
mov ecx, esi
call fcn.004095a0
add esp, 4
test al, al
je 0x40970f
mov bl, 1
jmp 0x4098a5
lea eax, [esp + 0xa0]
push str.CACHE_DIR
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x40984d
push edi
lea edx, [eax + 0x1c]
mov ecx, esi
call fcn.004095a0
add esp, 4
test al, al
je 0x40970f
mov bl, 1
jmp 0x4098a5
lea eax, [esp + 0xa0]
push str.COMPANY
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x4098dc
mov edx, edi
mov ecx, esi
cmp word [esi], ax
je 0x40987a
nop
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409870
mov ebx, str.Mobile_Unlocker
sub ebx, ecx
cmp edx, 1
jb 0x409a3c
mov ax, word [ebx + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [ebx + ecx], 0
jne 0x409881
xor eax, eax
mov word [ecx], ax
mov bl, byte [esp + 0x17]
cmp word [esi], 0
je 0x4098ba
nop dword [eax + eax]
add esi, 2
dec edi
cmp word [esi], 0
jne 0x4098b0
test bl, bl
je 0x4098d5
cmp word [esi - 2], 0x5c
jne 0x4098d5
sub esi, 2
xor eax, eax
inc edi
mov word [esi], ax
cmp word [esi - 2], 0x5c
je 0x4098c5
xor ecx, ecx
jmp 0x409a0a
lea eax, [esp + 0xa0]
push str.PRODUCT
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x409931
mov edx, edi
mov ecx, esi
cmp word [esi], ax
je 0x40990a
nop
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409900
mov ebx, str.Mobile_Unlocker
sub ebx, ecx
cmp edx, 1
jb 0x409a3c
mov ax, word [ebx + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [ebx + ecx], 0
jne 0x409911
jmp 0x40989c
lea eax, [esp + 0xa0]
push str.VERSION
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x409984
mov edx, edi
mov ecx, esi
cmp word [esi], ax
je 0x40995d
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409953
mov ebx, str.3.12.0.0
sub ebx, ecx
cmp edx, 1
jb 0x409a3c
mov ax, word [ebx + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [ebx + ecx], 0
jne 0x409964
jmp 0x40989c
lea eax, [esp + 0xa0]
push str.TIME
push eax
call fcn.0041153a
add esp, 8
test eax, eax
jne 0x40970f
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [esp + 0x1c]
lea eax, [esp + 0x8a4]
push dword [esp + 0x1c]
push str._lld
push 0x400
push eax
call fcn.00401040
add esp, 0x14
lea edx, [esp + 0x8a0]
mov ecx, esi
push edi
call fcn.00409a50
add esp, 4
jmp 0x4098a5
test ecx, ecx
je 0x4099fa
mov word [ecx], dx
add ecx, 2
jmp 0x409a0a
cmp edi, 1
jb 0x40970f
mov word [esi], dx
add esi, 2
dec edi
movzx eax, word [ebp + 2]
add ebp, 2
mov edx, eax
test ax, ax
jne 0x409690
xor eax, eax
mov word [esi], ax
mov al, 1
mov ecx, dword [esp + 0xca4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a51f
add esp, 0xc98
ret
call fcn.0040d6f1
int3