Function at 0x409400
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc98
mov eax, dword [0x423004]
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]
mov edi, eax
test ax, ax
je 0x40981f
mov ebx, dword [esp + 0xcac]
mov edx, edi
nop dword [eax + eax]
movzx eax, dx
cmp eax, 0x25
jne 0x4097f5
xor eax, eax
test ecx, ecx
jne 0x409466
lea ecx, [esp + 0xa0]
mov word [esp + 0xa0], ax
jmp 0x40980d
mov word [ecx], ax
mov byte [esp + 0x17], al
lea eax, [esp + 0xa0]
push str.TEMP
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x409495
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 1
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.PROGRAM
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x4094fa
mov edi, ebx
call fcn.0040ca9b
cmp word [esi], 0
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, esi
je 0x4094cb
add eax, 2
dec edi
cmp word [eax], 0
jne 0x4094c1
movzx ecx, word [edx]
test cx, cx
je 0x4094ee
cmp edi, 1
jb 0x409843
add edx, 2
mov word [eax], cx
add eax, 2
dec edi
movzx ecx, word [edx]
test cx, cx
jne 0x4094d3
xor ecx, ecx
mov word [eax], cx
mov al, cl
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.PROGRAM_BASE
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x40958c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409520
sub ecx, edx
mov eax, ebx
sar ecx, 1
mov edx, str._PROGRAM_
sub eax, ecx
mov ecx, esi
push eax
call fcn.00409400
add esp, 4
test al, al
je 0x40983f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409550
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jb 0x4097ba
add ecx, 0xfffffffc
push str..exe
lea edi, [esi + ecx*2]
push edi
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x4097ba
mov word [edi], ax
jmp 0x4097be
lea eax, [esp + 0xa0]
push 0x420da0
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x4095d4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x420da8
lea eax, [esp + 0x28]
push 0x80
push eax
call fcn.00401040
push ebx
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00409850
add esp, 0x14
jmp 0x4097ba
lea eax, [esp + 0xa0]
push str.HOME
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x40960a
push ebx
lea edx, [eax + 0x28]
mov ecx, esi
call fcn.00409350
add esp, 4
test al, al
je 0x40983f
mov al, 1
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.CACHE_DIR
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x409640
push ebx
lea edx, [eax + 0x1c]
mov ecx, esi
call fcn.00409350
add esp, 4
test al, al
je 0x40983f
mov al, 1
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.COMPANY
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x409698
mov edx, ebx
mov ecx, esi
cmp word [esi], ax
je 0x40966c
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409662
mov edi, 0x420ddc
sub edi, ecx
cmp edx, 1
jb 0x409843
mov ax, word [edi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [edi + ecx], 0
jne 0x409673
xor eax, eax
mov word [ecx], ax
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.PRODUCT
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x4096f6
mov edx, ebx
mov ecx, esi
cmp word [esi], ax
je 0x4096ca
nop word [eax + eax]
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x4096c0
mov edi, 0x420e08
sub edi, ecx
cmp edx, 1
jb 0x409843
mov ax, word [edi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [edi + ecx], 0
jne 0x4096d1
xor eax, eax
mov word [ecx], ax
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.VERSION
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x409755
cmp word [esi], 0
mov edx, ebx
mov eax, esi
je 0x40972a
nop dword [eax]
add eax, 2
dec edx
cmp word [eax], 0
jne 0x409720
mov edi, 0x420e28
sub edi, eax
cmp edx, 1
jb 0x409843
mov cx, word [edi + eax]
dec edx
mov word [eax], cx
add eax, 2
cmp word [edi + eax], 0
jne 0x409731
xor ecx, ecx
mov word [eax], cx
mov al, cl
jmp 0x4097be
lea eax, [esp + 0xa0]
push str.TIME
push eax
call fcn.0040f934
add esp, 8
test eax, eax
jne 0x40983f
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 ebx
call fcn.00409850
add esp, 4
mov al, byte [esp + 0x17]
cmp word [esi], 0
je 0x4097ce
add esi, 2
dec ebx
cmp word [esi], 0
jne 0x4097c4
test al, al
je 0x4097f1
cmp word [esi - 2], 0x5c
lea eax, [esi - 2]
jne 0x4097f1
nop dword [eax]
mov esi, eax
inc ebx
xor eax, eax
mov word [esi], ax
lea eax, [esi - 2]
cmp word [eax], 0x5c
je 0x4097e0
xor ecx, ecx
jmp 0x40980d
test ecx, ecx
je 0x409801
mov word [ecx], ax
add ecx, 2
jmp 0x40980d
cmp ebx, 1
jb 0x40983f
mov word [esi], ax
add esi, 2
dec ebx
movzx eax, word [ebp + 2]
add ebp, 2
mov edx, eax
test ax, ax
jne 0x409440
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.0040a92c
add esp, 0xc98
ret
xor al, al
jmp 0x409826
call fcn.0040c691
int3