Function at 0x4ec3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, 0x303c
call fcn.00590de0
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0xc0f
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x3044], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x3024], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x3e8
cmp edx, 0x2e
ja case.0x4ec42c.1034
jmp dword [edx*4 + 0x595b28]
mov dword [ebp - 0x3024], 0xfffffff5
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0xfffffff6
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x14
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x1a
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0xffffffff
jmp 0x4ec62c
mov dword [ebp - 0x3024], 7
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x1a
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x23
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x25
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0xffffffff
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x10
jmp 0x4ec62c
mov dword [ebp - 0x3024], 5
jmp 0x4ec62c
mov dword [ebp - 0x3024], 2
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x25
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x23
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x19
jmp 0x4ec62c
mov dword [ebp - 0x3024], 6
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x1f
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x2e
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x21
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x22
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x20
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0xd
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x27
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x26
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x2b
jmp 0x4ec62c
mov dword [ebp - 0x3024], 8
jmp 0x4ec62c
mov dword [ebp - 0x3024], 9
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x24
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x24
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x18
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x15
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x2d
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x13
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0x1b
jmp 0x4ec62c
mov dword [ebp - 0x3024], 0xffffffff
cmp dword [ebp - 0x3024], 0xfffffff6
jne 0x4ec71f
call fcn.0056d3b0
cmp al, 0
je 0x4ec67d
lea eax, [ebp - 0x80c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x3028], eax
cmp dword [ebp - 0x3028], 0
je 0x4ec678
push dword [ebp - 0x3028]
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a000
jmp case.0x4ec923.1008
lea eax, [ebp - 0xc0c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x302c], eax
cmp dword [ebp - 0x302c], 0
je 0x4ec71a
mov dword [ebp - 0x3018], 0
lea edx, [ebp - 0xc0c]
lea eax, [ebp - 0xc0c]
push eax
call fcn.0040d340
pop ecx
push eax
lea eax, [ebp - 0xc0c]
push eax
lea ecx, [ebp - 0x3018]
call fcn.00589f70
cmp dword [ebp - 0x3018], 0
je 0x4ec6e6
mov ebx, dword [ebp - 0x3018]
mov edx, dword [0x63df30]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x3018]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a7b0
cmp dword [ebp - 0x3018], 0
je 0x4ec709
mov ecx, dword [ebp - 0x3018]
call fcn.00589d70
call fcn.00546dd0
cmp dword [ebp - 0xc], 0
je 0x4ec71a
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x4ec923.1008
cmp dword [ebp - 0x3024], 0xffffffff
jne 0x4ec746
mov ebx, 0
cmp dword [ebp - 0xc], 0
je 0x4ec73b
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
cmp dword [ebp - 0x3024], 0xfffffff5
jne 0x4ec780
push 0x18
call fcn.00494950
pop ecx
cmp eax, 0
je 0x4ec765
mov ecx, eax
call fcn.00504440
mov eax, eax
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x4ec775
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0xc10], 0
mov dword [ebp - 0xc14], 0
mov byte [ebp - 0x302d], 0
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, 0
jge 0x4ec7b4
mov byte [ebp - 0x302d], 1
cmp byte [ebp - 0x302d], 0
jne 0x4ec7ef
lea eax, [ebp - 0xc10]
push eax
push dword [ebp - 0x3024]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, 0
je 0x4ec7ef
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 8]
mov byte [ebp - 0x302d], 1
cmp byte [ebp - 0x302d], 0
jne 0x4ec8d3
call fcn.0056d3b0
cmp al, 0
je 0x4ec83f
lea eax, [ebp - 0x1414]
push eax
push dword [ebp - 0xc10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, 0
je 0x4ec83a
lea eax, [ebp - 0x1414]
push eax
call fcn.0058d600
pop ecx
push eax
lea eax, [ebp - 0x1414]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a000
jmp 0x4ec8d3
lea eax, [ebp - 0x1814]
push eax
push dword [ebp - 0xc10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 0
je 0x4ec8d3
mov dword [ebp - 0x301c], 0
lea edx, [ebp - 0x1814]
lea eax, [ebp - 0x1814]
push eax
call fcn.0040d340
pop ecx
push eax
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0x301c]
call fcn.00589f70
cmp dword [ebp - 0x301c], 0
je 0x4ec89f
mov ebx, dword [ebp - 0x301c]
mov edx, dword [0x63df30]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x301c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a7b0
cmp dword [ebp - 0x301c], 0
je 0x4ec8c2
mov ecx, dword [ebp - 0x301c]
call fcn.00589d70
call fcn.00546dd0
cmp dword [ebp - 0xc], 0
je 0x4ec8d3
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc14], 0
je 0x4ec904
push dword [ebp - 0xc10]
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 0x14]
push dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc14]
mov esi, dword [edx]
call dword [esi + 8]
cmp byte [ebp - 0x302d], 0
je case.0x4ec923.1008
mov edx, dword [ebp + 8]
sub edx, 0x3ef
cmp edx, 0x15
ja case.0x4ec923.1008
jmp dword [edx*4 + 0x595ad0]
call fcn.0056d3b0
cmp al, 0
je 0x4ec96e
push 0x400
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x3034], eax
cmp dword [ebp - 0x3034], 0
je 0x4ec969
push dword [ebp - 0x3034]
lea eax, [ebp - 0x2014]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a000
jmp case.0x4ec923.1008
push 0x400
lea eax, [ebp - 0x2414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x3038], eax
cmp dword [ebp - 0x3038], 0
je 0x4ec9b5
push dword [ebp - 0x3038]
lea eax, [ebp - 0x2414]
push eax
lea ecx, [ebp - 0xc]
call fcn.00589f70
call fcn.00546dd0
cmp dword [ebp - 0xc], 0
je 0x4ec9b5
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp case.0x4ec923.1008
call fcn.0056d3b0
cmp al, 0
je 0x4ec9fb
push 0x400
lea eax, [ebp - 0x2c14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x303c], eax
cmp dword [ebp - 0x303c], 0
je 0x4ec9f9
push dword [ebp - 0x303c]
lea eax, [ebp - 0x2c14]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a000
jmp case.0x4ec923.1008
push 0x400
lea eax, [ebp - 0x3014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x3040], eax
cmp dword [ebp - 0x3040], 0
je case.0x4ec923.1008
push dword [ebp - 0x3040]
lea eax, [ebp - 0x3014]
push eax
lea ecx, [ebp - 0xc]
call fcn.00589f70
call fcn.00546dd0
cmp dword [ebp - 0xc], 0
je case.0x4ec923.1008
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4eca50
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
jmp 0x4eca55
mov eax, 0
cmp eax, 0
je 0x4ecac4
mov bl, 0
push 0x14
call fcn.00494950
pop ecx
mov esi, eax
cmp esi, 0
je 0x4eca92
lea eax, [ebp - 0x3020]
push eax
lea ecx, [ebp - 0xc]
call fcn.0058a3a0
mov bl, 1
lea eax, [ebp - 0x3020]
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.004ea0d0
mov esi, eax
cmp bl, 0
je 0x4ecaab
cmp dword [ebp - 0x3020], 0
je 0x4ecaab
mov ecx, dword [ebp - 0x3020]
call fcn.00589d70
cmp dword [ebp - 0xc], 0
je 0x4ecab9
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4
mov ebx, 0
cmp dword [ebp - 0xc], 0
je 0x4ecad7
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret 4