Function at 0x10012740
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 0x101b4032
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x288
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x27c], ecx
mov esi, dword [ebx + 0xc]
mov ecx, esi
push 0
push 0x101d6804
mov dword [ebp - 0x26c], esi
call fcn.10003cf0
mov edi, dword [ebx + 8]
cmp edi, 1
je 0x1001298f
cmp edi, 2
je 0x1001298f
cmp edi, 3
jne 0x10012bcb
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x100127ec
xor al, al
jmp 0x10012bd2
push esi
lea ecx, [ebp - 0x250]
call fcn.10005840
mov dword [ebp - 4], 4
mov ecx, dword [0x10224904]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001297e
nop
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x1001281c
mov edx, dword [eax + 0x10]
cmp dword [ebp - 0x23c], 8
lea edi, [ebp - 0x250]
mov esi, dword [ebp - 0x240]
cmovae edi, dword [ebp - 0x250]
cmp esi, dword [eax + 0x20]
jne 0x10012936
test esi, esi
je 0x10012865
sub edi, edx
nop word [eax + eax]
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x10012936
add edx, 2
sub esi, 1
jne 0x10012850
mov esi, dword [eax + 0x28]
test esi, esi
jle 0x1001297e
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1001297e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.10003b60
mov ecx, dword [ebp - 0x274]
mov byte [ebp - 4], 5
mov eax, dword [ecx]
add eax, 0x18
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10085b60
mov esi, dword [ebp - 0x26c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.10003b20
lea ecx, [ebp - 0x298]
call fcn.10003c80
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.10003c80
push dword [ebp - 0x27c]
lea eax, [ebp - 0x298]
push esi
push eax
call fcn.10085b60
add esp, 0xc
mov ecx, esi
push eax
call fcn.10003b20
lea ecx, [ebp - 0x298]
call fcn.10003c80
lea ecx, [ebp - 0x250]
jmp 0x10012bc6
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1001295c
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x10012958
cmp eax, dword [ecx + 8]
jne 0x10012958
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x10012948
mov eax, ecx
jmp 0x10012972
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x10012972
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x10012966
cmp eax, dword [0x10224904]
jne 0x10012810
mov esi, dword [ebp - 0x26c]
lea ecx, [ebp - 0x250]
jmp 0x10012bc6
xor eax, eax
mov dword [ebp - 0x258], 0
push eax
push 0x101d6804
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
call fcn.10003cf0
mov eax, dword [ebp - 0x274]
mov dword [ebp - 4], 0
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x10012a15
lea eax, [esi + 0x30]
lea ecx, [ebp - 0x268]
cmp ecx, eax
je 0x10012a15
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x100129fe
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x268]
call fcn.10003cf0
mov eax, dword [ebp - 0x274]
mov esi, dword [eax]
push esi
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x278], 0
call fcn.10005840
mov esi, dword [0x102248fc]
mov eax, dword [esi]
cmp eax, esi
je 0x10012aa1
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x10012a43
mov edx, dword [eax + 0x10]
cmp dword [ebp - 0x23c], 8
lea edi, [ebp - 0x250]
mov esi, dword [ebp - 0x240]
cmovae edi, dword [ebp - 0x250]
cmp esi, dword [eax + 0x20]
mov esi, dword [0x102248fc]
jne 0x10012bf6
mov esi, dword [ebp - 0x240]
test esi, esi
je 0x10012a95
sub edi, edx
nop dword [eax + eax]
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x10012bf0
add edx, 2
sub esi, 1
jne 0x10012a80
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x278], eax
mov edi, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.10091aa0
mov ecx, dword [ebp - 0x274]
lea edx, [ebp - 0x238]
push edx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x268]
push edx
mov ecx, dword [ecx]
add ecx, 0x18
push ecx
push dword [ebp - 0x278]
mov ecx, eax
call fcn.10091d60
lea ecx, [ebp - 0x280]
mov byte [ebp - 0x26d], al
mov byte [ebp - 4], 2
call fcn.10011f60
cmp byte [ebp - 0x26d], 0
mov esi, dword [ebp - 0x26c]
je 0x10012baa
lea eax, [ebp - 0x238]
cmp esi, eax
je 0x10012b46
cmp dword [ebp - 0x224], 8
mov ecx, esi
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.10003cf0
cmp edi, 1
jne 0x10012baa
push dword [ebp - 0x27c]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10085b60
mov edi, dword [ebp - 0x26c]
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x10012b9d
mov ecx, edi
call fcn.10003c80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x298]
call fcn.10003c80
mov esi, edi
lea ecx, [ebp - 0x238]
call fcn.10003c80
lea ecx, [ebp - 0x250]
call fcn.10003c80
lea ecx, [ebp - 0x268]
call fcn.10003c80
cmp dword [esi + 0x10], 0
setne al
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.101b075c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [0x102248fc]
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x10012c1c
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x10012c18
cmp eax, dword [ecx + 8]
jne 0x10012c18
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x10012c08
mov eax, ecx
jmp 0x10012c32
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x10012c32
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x10012c26
cmp eax, esi
jne 0x10012a37
jmp 0x10012a9e