Function at 0x402140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423db4
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], edx
mov esi, ecx
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x244], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], esi
push eax
push 0
push 0
xor edi, edi
mov dword [ebp - 0x240], edi
or edi, 0x10
push 0x1a
push 0
mov dword [ebp - 0x234], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x230]
test eax, eax
js 0x4021c5
lea eax, [ebp - 0x218]
push eax
call fcn.00402e90
jmp 0x4021d5
push 0x42caf4
call fcn.00402e90
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
test ecx, ecx
jne 0x40220c
push 0x42caf4
lea ecx, [ebp - 0x278]
call fcn.00402e90
mov ecx, eax
mov eax, dword [ebp - 0x234]
or eax, 1
jmp 0x40242c
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x4025e3
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
lea edx, [ecx + 1]
mov dword [ebp - 0x24c], 0
cmova eax, dword [ebp - 0x230]
mov esi, 7
mov dword [ebp - 0x244], eax
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x234], eax
movups xmmword [ebp - 0x25c], xmm0
cmp edx, esi
jbe 0x402310
mov esi, edx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x402291
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
jmp 0x4022b2
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4025e8
add eax, eax
cmp eax, 0x1000
jb 0x4022e7
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4025e8
push ecx
call fcn.0040804a
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4025ed
mov edx, dword [ebp - 0x23c]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x220]
jmp 0x402304
test eax, eax
je 0x402302
push eax
call fcn.0040804a
mov ecx, dword [ebp - 0x220]
add esp, 4
mov edx, dword [ebp - 0x23c]
jmp 0x402304
xor eax, eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x248], esi
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x244]
mov dword [ebp - 0x24c], edx
push eax
call fcn.004094f0
mov eax, dword [ebp - 0x234]
mov ecx, 0x5c
xor edx, edx
add esp, 0xc
or edi, 0x20
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x23c]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x238]
or edi, 2
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x240], edi
cmp dword [eax + 0x14], 7
jbe 0x402373
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov edx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x248]
sub eax, edx
mov dword [ebp - 0x238], edx
cmp edi, eax
ja 0x4023d2
cmp dword [ebp - 0x248], 7
lea eax, [edi + edx]
mov dword [ebp - 0x24c], eax
lea esi, [ebp - 0x25c]
cmova esi, dword [ebp - 0x25c]
lea eax, [edi + edi]
push eax
push ecx
lea eax, [esi + edx*2]
push eax
call fcn.004094f0
mov eax, dword [ebp - 0x238]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x25c]
jmp 0x4023ed
push edi
push ecx
mov byte [ebp - 0x238], 0
lea ecx, [ebp - 0x25c]
push dword [ebp - 0x238]
push edi
call fcn.00405d30
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0x260]
xor ecx, ecx
movups xmmword [ebp - 0x290], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x290]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov eax, dword [ebp - 0x234]
movq qword [ebp - 0x280], xmm0
or eax, 0x44
xorps xmm0, xmm0
xor edx, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
or eax, 8
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
test al, 4
je 0x4024b9
mov ecx, dword [ebp - 0x27c]
and eax, 0xfffffffb
mov dword [ebp - 0x234], eax
cmp ecx, 7
jbe 0x4024b9
mov edx, dword [ebp - 0x290]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4024a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ed
push ecx
push edx
call fcn.0040807a
mov eax, dword [ebp - 0x234]
add esp, 8
test al, 2
je 0x402529
mov ecx, dword [ebp - 0x248]
and eax, 0xfffffffd
mov dword [ebp - 0x234], eax
cmp ecx, 7
jbe 0x40250c
mov edx, dword [ebp - 0x25c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4024fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ed
push ecx
push edx
call fcn.0040807a
mov eax, dword [ebp - 0x234]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], cx
test al, 1
je 0x40258a
mov ecx, dword [ebp - 0x264]
cmp ecx, 7
jbe 0x40256d
mov edx, dword [ebp - 0x278]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402563
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ed
push ecx
push edx
call fcn.0040807a
add esp, 8
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x21c]
cmp eax, 7
jbe 0x4025c6
mov edx, dword [ebp - 0x230]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4025bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ed
push ecx
push edx
call fcn.0040807a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408037
mov esp, ebp
pop ebp
ret
call fcn.00401360
call fcn.004012c0
call fcn.0040e993
int3