Function at 0x4851c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad430
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5bd344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x485442
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x485232
push 0x200
lea ecx, [ebp - 0x10]
call fcn.00462fd0
mov esi, dword [ebp - 0x10]
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.005945a6
add esp, 8
test eax, eax
js 0x485456
cmp eax, dword [esi - 8]
jg 0x485456
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
test edi, edi
jne 0x4852e1
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x48544c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, 0x41bcc8
mov byte [ebp - 4], 1
mov ecx, ebx
test eax, 0xffff0000
jne 0x4852a2
movzx eax, ax
push eax
call fcn.00462e20
jmp 0x4852ae
push 0
push 0x41bcc8
call fcn.004631c0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4852cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi - 1]
test eax, eax
js 0x485456
cmp eax, edi
jg 0x485456
cmp word [esi + eax*2], 0x5c
je 0x485396
mov eax, 0x416964
mov dword [ebp - 0x14], 0x416964
sub eax, esi
sar eax, 1
push 1
push 0x416964
mov dword [ebp - 0x1c], eax
call fcn.005945a6
mov ecx, SysReAllocString
mov dword [ebp - 0x18], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x485456
lea edx, [edi + eax]
test edx, edx
js 0x485460
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x48535b
push edx
lea ecx, [ebp - 0x10]
call fcn.00462fd0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x485368
lea eax, [esi + eax*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00463130
mov eax, dword [ebp - 0x18]
add esp, 0x10
add eax, edi
cmp eax, dword [esi - 8]
jg 0x485456
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
mov eax, 0x420b60
sub eax, esi
sar eax, 1
push 0xd
push 0x420b60
mov dword [ebp - 0x14], eax
call fcn.005945a6
mov edx, eax
add esp, 8
mov eax, SysReAllocString
mov dword [ebp - 0x18], edx
sub eax, edx
cmp eax, edi
jl 0x48546a
lea ecx, [edi + edx]
test ecx, ecx
js 0x485474
mov eax, 1
sub eax, dword [esi - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi - 8]
sub eax, ecx
or eax, dword [ebp - 0x1c]
jge 0x4853f4
push ecx
lea ecx, [ebp - 0x10]
call fcn.00462fd0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp eax, edi
lea eax, [esi + eax*2]
jbe 0x485403
mov eax, 0x420b60
push edx
push eax
push edx
lea eax, [esi + edi*2]
push eax
call fcn.00463130
mov eax, dword [ebp - 0x18]
add esp, 0x10
add eax, edi
cmp eax, dword [esi - 8]
jg 0x485456
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, esi
call fcn.00484d40
add esi, 0xfffffff0
push esi
call fcn.00488a00
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x4852b1
push 0x80004005
call fcn.0045d5a0
push 0x80004005
call fcn.0045d5a0
push 0x80070057
call fcn.0045d5a0
push 0x80070057
call fcn.0045d5a0
push 0x80070057
call fcn.0045d5a0
push 0x80070057
call fcn.0045d5a0
int3