Function at 0x4991d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5b1fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x248]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x28], ebp
cmp ebp, edi
je 0x499227
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov dword [esp + 0x240], edi
cmp ebp, edi
je 0x499480
mov eax, dword [esi + 4]
cmp eax, edi
je 0x499480
mov dword [esp + 0x14], edi
mov byte [esp + 0x240], 2
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 0x1c8]
mov edx, dword [eax]
lea esi, [esp + 0x18]
push esi
push ecx
push eax
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x49943a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push eax
call edx
cmp eax, 9
jne 0x49943a
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x20]
call fcn.00480c40
mov byte [esp + 0x240], 3
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4993e0
mov ecx, dword [ebp + 0xb4]
mov edi, dword [eax]
lea esi, [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x1c], ecx
add edi, 0x24
call fcn.0048ef40
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi]
push edx
push ebx
call eax
test eax, eax
je 0x4993da
push 0x208
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.0058e300
add esp, 0xc
push 1
push 0x10
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00406c20
push eax
lea edx, [esp + 0x20]
push edx
mov ebx, 0x5d4b20
mov byte [esp + 0x248], 4
call fcn.00406330
mov eax, dword [eax]
add esp, 8
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x1c]
call fcn.004066e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 3
call fcn.004066e0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push eax
mov esi, eax
call edx
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x3c]
push esi
call ecx
lea edx, [esp + 0x2c]
push edx
mov edx, edi
mov ecx, eax
call fcn.00527b8c
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x499391
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x240], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4993a9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4993c1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
jmp 0x499498
mov eax, dword [esp + 0x20]
xor edi, edi
mov byte [esp + 0x240], 2
cmp eax, edi
je 0x4993f4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x240], 1
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x49940c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x499424
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
jmp 0x499498
mov byte [esp + 0x240], 1
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x499452
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x240], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x49946a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
jmp 0x499498
mov dword [esp + 0x240], 0xffffffff
cmp ebp, edi
je 0x499498
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push ebp
call eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005886fc
add esp, 0x230
ret 4