Function at 0x4c5fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530e92
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x559024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], ebx
push 0x5388e8
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4c60ae
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov ecx, esi
lea ebx, [ebp - 0x274]
call fcn.004fca40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x230], eax
cmp ecx, ebx
je 0x4c60ae
mov edx, dword [ebp - 0x238]
lea ecx, [esi + 1]
push ecx
push 0x5388e8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x234], esi
mov byte [ebp - 4], 1
lea ecx, [edi + 0x87c]
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x21d], bl
call fcn.004eb520
mov dword [ebp - 0x25c], eax
cmp eax, ebx
je 0x4c62fd
mov edx, 0x20a
lea ecx, [ebp - 0x21c]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4c60e2
mov eax, dword [eax + 0x410]
push ebx
push eax
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
xor esi, esi
push edx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, ebx
jle 0x4c617c
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov ecx, edi
lea ebx, [ebp - 0x268]
call fcn.004fca40
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], edx
cmp esi, ebx
je 0x4c617c
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x4c61a2
push esi
call fcn.005134a7
add esp, 4
cmp dword [ebp - 0x228], ebx
je 0x4c61ed
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.004fcfe0
add esp, 0xc
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.004fce50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28c]
cmp eax, ebx
je 0x4c61ed
push eax
call fcn.005134a7
add esp, 4
mov edx, dword [ebp - 0x25c]
add edx, 0x208
push edx
lea esi, [ebp - 0x254]
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
call fcn.004fcba0
mov eax, esi
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x280]
push edx
mov byte [ebp - 4], 4
call fcn.004fcfe0
add esp, 0xc
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.004fce50
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x280]
cmp eax, ebx
je 0x4c626c
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x254]
cmp eax, ebx
je 0x4c6283
push eax
call fcn.005134a7
add esp, 4
mov edi, dword [ebp - 0x22c]
mov eax, edi
cmp edi, ebx
jne 0x4c6294
mov eax, 0x538640
mov esi, dword [ebp - 0x258]
push eax
push 4
push 0x30
push 0xa43a
push esi
call fcn.0043b7e0
cmp eax, 6
jne 0x4c6303
mov eax, edi
cmp edi, ebx
jne 0x4c62ba
mov eax, 0x538640
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004415d0
test al, al
je 0x4c62d4
mov byte [ebp - 0x21d], 1
jmp 0x4c6303
cmp dword [ebp - 0x23c], 0xce
push ebx
push 0x30
jne 0x4c62f0
push 0xa447
push esi
call fcn.0043b6e0
jmp 0x4c6303
push 0xa41d
push esi
call fcn.0043b6e0
jmp 0x4c6303
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x4c6319
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x4c632d
push edi
call fcn.005134a7
add esp, 4
mov al, byte [ebp - 0x21d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret 4