Function at 0x40aad0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419d8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1e8
push esi
mov dword [ebp - 0x6c], ecx
push edi
mov dword [ecx], 0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
push eax
push 0x104
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00403a80
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp - 0x58]
cmp eax, ecx
ja 0x40ab7e
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x58], eax
cmovae ecx, dword [ebp - 0x68]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40ab8b
sub eax, ecx
lea ecx, [ebp - 0x68]
push 0
push eax
call fcn.00403a80
mov dword [ebp - 0x38], 0x95afa0ca
mov dword [ebp - 0x34], 0xb126465b
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x38], 0x54e08076
mov dword [ebp - 0x34], 0x27ab48f6
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x38], 0x95caa0b9
mov dword [ebp - 0x34], 0xb153462f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], 0x54e08006
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x34], 0x27ab48f6
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
movaps xmm1, xmmword [ebp - 0xb0]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xf8], eax
lea edx, [ecx + 2]
pxor xmm1, xmmword [ebp - 0x100]
movaps xmmword [ebp - 0xb0], xmm1
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac30
sub ecx, edx
lea eax, [ebp - 0xb0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.00403c00
xor edi, edi
lea esi, [ebp - 0x1a2]
mov ecx, edi
test edi, edi
jns 0x40ac90
neg ecx
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x40ac60
add esi, 0xfffffffe
mov eax, 0x2d
mov word [esi], ax
jmp 0x40acb0
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x40ac90
mov dword [ebp - 0xe0], 0
xor eax, eax
mov dword [ebp - 0xd0], 0
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0x1a2]
mov dword [ebp - 0xcc], 7
mov byte [ebp - 4], 3
cmp esi, eax
je 0x40acf6
sub eax, esi
lea ecx, [ebp - 0xe0]
sar eax, 1
push eax
push esi
call fcn.00401a10
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0xe0]
push eax
push 0
mov byte [ebp - 4], 5
call fcn.0040c220
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb8], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 4
push str..exe
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 8
call fcn.00403c00
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x40adf1
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0xd
cmp edx, 0x1000
jb 0x40ade7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b331
push edx
push ecx
call fcn.0040d8f9
add esp, 8
xor eax, eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
mov edx, dword [ebp - 0xcc]
cmp edx, 8
jb 0x40ae52
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0xf
cmp edx, 0x1000
jb 0x40ae48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b331
push edx
push ecx
call fcn.0040d8f9
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
cmp dword [ebp - 0x3c], 8
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
mov dword [ebp - 0xcc], 7
mov dword [ebp - 0x84], 0
push dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], cx
lea ecx, [ebp - 0x84]
push eax
mov dword [ebp - 0x70], 7
mov byte [ebp - 4], 0xe
call fcn.00401a10
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x1f0]
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0x11
cmovae eax, dword [ebp - 0x84]
push ecx
push eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xffff
call fcn.0040d2f7
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x90], eax
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0040ba20
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x423008
test ecx, ecx
je 0x40af32
cmp ecx, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x423008
setne byte [ebp - 0x29]
jmp 0x40af3e
mov byte [ebp - 0x29], 0
test eax, eax
jne 0x40b0b4
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x40af7f
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0x12
cmp edx, 0x1000
jb 0x40af75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b331
push edx
push ecx
call fcn.0040d8f9
add esp, 8
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp byte [ebp - 0x29], al
je 0x40affd
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40afe1
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0x13
cmp edx, 0x1000
jb 0x40afd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b331
push edx
push ecx
call fcn.0040d8f9
add esp, 8
mov byte [ebp - 4], 3
inc edi
cmp edi, 0x64
jl 0x40ac51
mov esi, dword [ebp - 0x6c]
cmp dword [esi + 0x10], 0
je 0x40b0c9
jmp 0x40b086
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x50]
cmp esi, eax
je 0x40b050
mov eax, dword [esi + 0x14]
mov byte [ebp - 4], 0x14
cmp eax, 8
jb 0x40b01e
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401b70
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x40], eax
xor ecx, ecx
mov eax, 7
mov word [ebp - 0x50], cx
mov dword [ebp - 0x3c], eax
jmp 0x40b053
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x17
cmp eax, 8
jb 0x40b069
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00401b70
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov byte [ebp - 4], 3
jmp 0x40afee
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0x19
cmp eax, 8
jb 0x40b09f
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00401b70
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x28]
push eax
push str.exists
call fcn.0040baa0
mov dword [ebp - 0x28], 0x95b8a0fc
mov dword [ebp - 0x24], 0xb13c465d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x28], 0x54c18074
mov dword [ebp - 0x24], 0x27ab48f6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0x28], 0x95caa0b9
mov dword [ebp - 0x24], 0xb153462f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x54e08006
mov dword [ebp - 0x24], 0x27ab48f6
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x24]
movaps xmm1, xmmword [ebp - 0xf0]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ecx
pxor xmm1, xmmword [ebp - 0x110]
movaps xmmword [ebp - 0xf0], xmm1
mov dword [ebp - 0x28], 0x95aba0fa
mov dword [ebp - 0x24], 0xb1274641
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x28], 0x54838026
mov dword [ebp - 0x24], 0x27ce4884
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x28], 0x65893b0a
mov dword [ebp - 0x24], 0x8bb4b524
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x28], 0x13a428dc
mov dword [ebp - 0x24], 0x8168f01d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x28], 0xbf6ecb9d
mov dword [ebp - 0x24], 0xd62f02aa
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x28], 0x428b2b6f
mov dword [ebp - 0x24], 0x111f80da
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x28], 0x95caa0b9
mov dword [ebp - 0x24], 0xb153462f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x28], 0x54e08006
mov dword [ebp - 0x24], 0x27ab48f6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x28], 0x65fd3b6b
mov dword [ebp - 0x24], 0x8b94b541
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x28], 0x13c128a8
mov dword [ebp - 0x24], 0x8118f070
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x28], 0xbf08cbbd
mov dword [ebp - 0x24], 0xd64302c3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x28], 0x42a52b0a
mov dword [ebp - 0x24], 0x111f80da
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
vmovdqu ymm0, ymmword [ebp - 0x160]
vpxor ymm0, ymm0, ymmword [ebp - 0x1a0]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0xf0]
push 0
push eax
mov dword [ebp - 0x134], ecx
lea eax, [ebp - 0x1a0]
vmovdqa ymmword [ebp - 0x1a0], ymm0
vmovaps xmm1, xmmword [ebp - 0x180]
vpxor xmm1, xmm1, xmmword [ebp - 0x140]
push eax
vmovaps xmmword [ebp - 0x180], xmm1
push 0
vzeroupper
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.0041126a
call fcn.00410d0f
int3