Function at 0x40adf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598a87
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5fd890]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x5fd890]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor eax, eax
movzx edx, ax
mov eax, edx
mov esi, ecx
xor ebx, ebx
shl edx, 0x10
or eax, edx
push ebx
mov dword [esp + 0x18], ebx
mov ecx, 0x82
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
push 0x1a
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404a60
mov dword [esp + 0x240], ebx
call fcn.00470afc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ae91
push 0x80004005
call fcn.004020b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.0040b180
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jg 0x40aec2
or edi, 0xffffffff
jmp 0x40aede
push 0x5c
push ecx
call fcn.00566c28
add esp, 8
test eax, eax
jne 0x40aed6
or edi, 0xffffffff
jmp 0x40aede
sub eax, dword [esp + 0x10]
sar eax, 1
mov edi, eax
call fcn.00470afc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aef8
push 0x80004005
call fcn.004020b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x240], 2
cmp edi, 0xffffffff
jne 0x40af77
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404440
add eax, 0x10
mov dword [esi], eax
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x240], 1
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b121
mov ecx, dword [eax]
push eax
jmp 0x40b11a
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 0xc]
lea eax, [edi + 1]
test eax, eax
jl 0x40afa5
cmp eax, edx
jge 0x40afa5
lea ecx, [ecx + eax*2]
push 0x5c
push ecx
call fcn.00566c28
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x40afa5
sub eax, ecx
sar eax, 1
jmp 0x40afa8
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x40afdb
lea eax, [ecx - 0x10]
push eax
call fcn.00404440
add eax, 0x10
mov dword [esi], eax
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x240], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40af41
lea edi, [eax + 1]
mov eax, dword [ecx - 0xc]
test edi, edi
jl 0x40afad
cmp edi, eax
jge 0x40afad
lea ecx, [ecx + edi*2]
push 0x5c
push ecx
call fcn.00566c28
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x40afad
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b010
mov esi, dword [esp + 0x20]
jmp 0x40afad
push edi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.004028d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 3
call fcn.004044b0
mov byte [esp + 0x240], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00404550
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
sub eax, esi
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.00406960
mov byte [esp + 0x240], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404550
mov byte [esp + 0x240], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
add edi, 0xfffffff0
push edi
call fcn.00404440
mov esi, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x240], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0fd
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x240], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b121
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b14c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00565f92
mov esp, ebp
pop ebp
ret