Function at 0x404690
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5259b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x58a088]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x2b4], edi
lea ecx, [ebp - 0x240]
push esi
mov dword [ebp - 0x28c], 0
call fcn.00404520
mov eax, dword [ebx + 8]
sub esp, 0x18
mov ecx, dword [ebx + 0xc]
shld ecx, eax, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x294], ecx
mov ecx, esp
shl eax, 2
mov dword [ebp - 0x298], esp
push esi
mov dword [ebp - 0x290], eax
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.00492a30
add esp, 0x18
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 3
call fcn.00492d20
cmp edx, dword [ebp - 0x294]
jb 0x4047dd
ja 0x404763
cmp eax, dword [ebp - 0x290]
jbe 0x4047dd
mov byte [ebp - 4], 4
xor eax, eax
movups xmm0, xmmword [ebp - 0x240]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x240], ax
movq xmm0, qword [ebp - 0x230]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov byte [ebp - 4], 3
mov dword [ebp - 0x28c], 1
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 5
call fcn.00402ac0
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 9
call fcn.00402ac0
jmp 0x404b01
mov byte [ebp - 4], 0xd
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
push 0x20c
push eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xe
push eax
call fcn.004e48c0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x404a7d
xor eax, eax
lea ecx, [ebp - 0x228]
mov word [ebp - 0x1e], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404860
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.00402b20
sub esp, 0x18
lea eax, [ebp - 0x258]
mov ecx, esp
mov dword [ebp - 0x298], esp
push eax
call fcn.00404520
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0xe
call fcn.00492a30
add esp, 0x18
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0x1d
call fcn.00404600
lea ecx, [ebp - 0x270]
mov esi, eax
call fcn.00404600
cmp eax, esi
lea ecx, [ebp - 0x288]
cmovae esi, eax
push esi
call fcn.00403390
lea ecx, [ebp - 0x270]
mov esi, eax
call fcn.00403390
mov edx, esi
mov ecx, eax
call fcn.00490050
add esp, 4
test eax, eax
je 0x4049aa
lea ecx, [ebp - 0x288]
call fcn.00492d20
cmp edx, dword [ebp - 0x294]
jb 0x4049aa
ja 0x404922
cmp eax, dword [ebp - 0x290]
jbe 0x4049aa
push str.Program_Files__x86_2345Soft_
lea ecx, [ebp - 0x2b0]
call fcn.00402a40
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0x1e
push eax
lea eax, [ebp - 0x288]
push eax
push edi
call fcn.0048f1b0
add esp, 0xc
mov dword [ebp - 0x28c], 1
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x1f
call fcn.00402ac0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0x23
call fcn.00402ac0
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0x27
call fcn.00402ac0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x2b
call fcn.00402ac0
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0x2f
call fcn.00402ac0
jmp 0x404b01
push 0x1d
xor eax, eax
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0
lea ecx, [ebp - 0x2b0]
push str.Program_Files__x86_2345Soft_
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
call fcn.00402b20
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 0x33
call fcn.00492af0
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x34
push ecx
push eax
push edi
call fcn.0048f1b0
add esp, 0xc
mov dword [ebp - 0x28c], 1
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 0x35
call fcn.00402ac0
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x39
call fcn.00402ac0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0x3d
call fcn.00402ac0
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0x41
call fcn.00402ac0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x45
call fcn.00402ac0
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0x49
call fcn.00402ac0
jmp 0x404b01
mov byte [ebp - 4], 0xf
xor eax, eax
movups xmm0, xmmword [ebp - 0x240]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x240], ax
movq xmm0, qword [ebp - 0x230]
movq qword [edi + 0x10], xmm0
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x28c], 1
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0x10
call fcn.00402ac0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x14
call fcn.00402ac0
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0x18
call fcn.00402ac0
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1ff4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret