Function at 0x40a6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5025e1
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b73e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40a740
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b73e0
push 0x5347f0
lea eax, [ebp - 0x218]
push eax
push str._s_s_
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00409ac0
add esp, 0x20
mov dword [ebp - 0x450], 0
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a7b0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.004084c0
mov dword [ebp - 4], 0
push 0x561238
mov dword [ebp - 0x46c], 0x561238
call fcn.0049ff05
add esp, 4
test eax, eax
jne 0x40a9ef
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
mov edx, esi
lea ecx, [ebp - 0x450]
call fcn.00435460
test al, al
jne 0x40a88a
push esi
lea ecx, [ebp - 0x438]
call fcn.00408370
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 2
cmp esi, eax
je 0x40a846
cmp dword [ebp - 0x43c], 8
mov ecx, esi
push dword [ebp - 0x440]
cmovae eax, dword [ebp - 0x450]
push eax
call fcn.004084c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x40a88a
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a880
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9f5
push edx
push ecx
call fcn.004b51c1
add esp, 8
push 0x561238
call fcn.0049ff2a
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x40a8de
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9f5
push edx
push ecx
call fcn.004b51c1
add esp, 8
push 8
xor eax, eax
mov dword [ebp - 0x468], 0
push str._Y__m__d
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
call fcn.004084c0
lea edx, [ebp - 0x468]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x438]
call fcn.004200f0
push eax
lea ecx, [edi + 0xb4]
call fcn.00412080
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x40a97b
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a971
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9fa
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x454]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 8
jb 0x40a9d4
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9fa
push edx
push ecx
call fcn.004b51c1
add esp, 8
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.004b4f32
mov esp, ebp
pop ebp
ret
push eax
call fcn.0049fb75
call fcn.004b9cae
call fcn.004b9cae
int3