Function at 0x435500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x435529
invalid
mov al, byte [0x4af4d4]
mov ecx, 0xff
mov byte [ebp - 0x420], al
xor eax, eax
lea edi, [ebp - 0x41f]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x420]
push 0x17
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4355b5
mov edi, 0x4af4d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 8]
push 1
not ecx
dec ecx
mov ebx, ecx
mov ecx, edi
push ebx
call fcn.00401800
test al, al
je 0x43574f
mov edi, dword [edi + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x4af4d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
call fcn.004078b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edi, [ebp - 0x420]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp - 0x10], esi
call fcn.00401800
test al, al
je 0x435601
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
lea esi, [ebp - 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [ebx + 8], ecx
mov byte [eax], 0
mov edi, 0x4af4d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebx + 8]
push 0x4af4d4
push ecx
push eax
mov ecx, ebx
call fcn.00408280
test eax, eax
je 0x43574f
mov ecx, ebx
call fcn.004075c0
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x43563c
xor eax, eax
jmp 0x435641
mov eax, dword [ebx + 8]
add eax, ecx
cmp byte [eax - 1], 0x5c
jne 0x43574f
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x20]
dec eax
mov ecx, ebx
push eax
push 0
push edx
call fcn.00436240
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [0x484bc8]
mov edi, eax
mov dword [ebp - 4], 0
cmp ecx, edi
mov dword [ebp + 8], edi
jae 0x43567d
mov dword [ebp + 8], ecx
mov edi, ecx
cmp ebx, esi
jne 0x43569a
push ecx
push edi
mov ecx, ebx
call fcn.00407790
push 0
push 0
mov ecx, ebx
call fcn.00407790
jmp 0x43571a
test edi, edi
jbe 0x4356e2
cmp edi, eax
jne 0x4356e2
mov eax, dword [esi + 4]
test eax, eax
jne 0x4356ae
mov eax, 0x482818
cmp byte [eax - 1], 0xfe
jae 0x4356e2
push 1
mov ecx, ebx
call fcn.00401760
mov eax, dword [esi + 4]
test eax, eax
jne 0x4356c9
mov eax, 0x482818
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x43571a
push 1
push edi
mov ecx, ebx
call fcn.00401800
test al, al
je 0x43571a
mov esi, dword [esi + 4]
test esi, esi
jne 0x4356fc
mov esi, 0x482818
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.004078b0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43574f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x435746
cmp al, 0xff
je 0x435746
dec al
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.00478980
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4