Function at 0x4c3c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1584
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, esp
mov dword [esp + 0x1580], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov esi, edx
push eax
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4c3f4c
mov eax, esi
sub eax, 0
je 0x4c3ef9
sub eax, 4
je 0x4c3ee9
sub eax, 1
je 0x4c3ebf
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call fcn.004f1940
test eax, eax
je 0x4c3ce4
call fcn.004f1990
mov edi, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x1c], edi
sete al
mov dword [esp + 0x10], eax
mov ecx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, 0xffffffff
sub esi, 1
je 0x4c3d0a
sub esi, 1
je 0x4c3d03
sub esi, 1
jne 0x4c3d0f
lea eax, [esi + 5]
jmp 0x4c3d0f
mov eax, 2
jmp 0x4c3d15
mov eax, 0x10
xor edi, edi
test eax, eax
js 0x4c3d73
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
push eax
push dword [0x56ab2c]
xor edi, edi
call ecx
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4c3d6b
lea eax, [esp + 0x330]
push eax
push dword [esp + 0x18]
call esi
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push 1
lea eax, [esp + 0x334]
push eax
push ebx
call fcn.004f5990
add esp, 0xc
mov edi, 1
mov ecx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x4c3d79
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp dword [esp + 0x10], 0
je 0x4c3e85
test edi, edi
je 0x4c3e85
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x28
push dword [0x56ab2c]
call ecx
test eax, eax
jne 0x4c3e85
lea eax, [esp + 0x330]
push eax
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push 1
lea eax, [esp + 0x334]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004f5990
lea esi, [esp + 0x2c]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c3de5
sub esi, ecx
lea eax, [esp + 0x20]
push esi
push ebx
push eax
call fcn.0043e290
add esp, 0xc
test eax, eax
jne 0x4c3e85
lea edx, [eax + 1]
call fcn.004f19c0
test eax, eax
je 0x4c3e85
lea ecx, [esp + 0xc58]
call fcn.004f1630
test eax, eax
je 0x4c3e7e
lea eax, [esp + 0x948]
push ebx
push eax
call fcn.004f5eb0
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea edx, [esp + 0xf7c]
lea ecx, [esp + 0x128c]
call fcn.0047d890
add esp, 0x14
lea eax, [esp + 0x948]
add eax, esi
push eax
lea eax, [esp + 0xc5c]
push eax
lea eax, [esp + 0xf70]
push eax
lea eax, [esp + 0x1284]
push eax
push str._s_s_s_s
push ebx
call fcn.00401500
add esp, 0x18
xor edx, edx
call fcn.004f19c0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4c3f2b
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1580]
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004c16e0
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1580]
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x330]
push eax
push 0
push 0
push 0x26
jmp 0x4c3f07
lea eax, [esp + 0x330]
push eax
push 0
push 0
push 0x24
push dword [0x56ab2c]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 1
lea eax, [esp + 0x334]
push eax
push ebx
call fcn.004f5990
mov edi, 1
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1580]
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x158c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret