Function at 0x4060ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
or eax, eax
jge 0x4060e8
mov ecx, dword [0x473288]
lea eax, [eax*4 + 4]
sbb ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x47b2d8]
lea ecx, [ecx + eax*2]
mov eax, 0x46b220
push edi
push eax
pop edi
cmp dword [ebp + 8], eax
jb 0x406114
mov edx, dword [ebp + 8]
sbb edx, eax
sar edx, 1
cmp edx, 0x4008
jae 0x406114
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
movzx edx, word [ecx]
test dx, dx
je 0x406343
push ebx
push esi
push edi
pop esi
sbb esi, eax
and esi, 0xfffffffe
cmp esi, 0x4008
jge 0x406341
movzx edx, dx
inc ecx
mov esi, 0xe000
inc ecx
mov dword [ebp + 0xc], edx
test esi, edx
je 0x40631f
push esi
pop ebx
cmp dx, bx
jbe 0x40631f
movzx eax, word [ecx]
push eax
pop ebx
push eax
pop esi
shr eax, 8
and ebx, 0xff
mov dword [ebp - 0xc], eax
or eax, 0x8000
push ebx
pop edx
or edx, 0x8000
and esi, 0x7fff
inc ecx
mov dword [ebp - 0x10], eax
inc ecx
mov eax, 0xe002
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], ecx
cmp word [ebp + 0xc], ax
jne 0x4062b2
push 2
pop esi
call dword [sym.imp.kernel32.dll_GetVersion]
or eax, eax
jns 0x4061c1
mov ecx, 0x5a04
cmp ax, cx
je 0x4061c1
cmp dword [ebp - 0xc], 0x23
je 0x4061c1
cmp dword [ebp - 0xc], 0x2e
je 0x4061c1
and dword [ebp + 0xc], 0
jmp 0x4061c8
mov dword [ebp + 0xc], 1
cmp dword [0x47b364], 0
je 0x4061d4
push 4
pop esi
test bl, bl
jns 0x406212
push ebx
pop eax
and eax, 0x40
push eax
mov eax, dword [0x47b2d8]
push edi
and ebx, 0x3f
lea eax, [eax + ebx*2]
push eax
push str.mhz5eaon0p0lxz9ggs1p78t0agufw5rmklhnbl6bt9
push 0x80000002
call fcn.00405981
cmp word [edi], 0
jne 0x40629e
push dword [ebp - 0xc]
push edi
call fcn.004060ca
jmp 0x406298
cmp ebx, 0x25
jne 0x406225
push 0x2004
push edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x406298
cmp ebx, 0x24
jne 0x406294
push 0x2004
push edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
sub esi, esi
jmp 0x406294
mov eax, dword [0x47b2b0]
sub ecx, ecx
dec esi
cmp eax, ecx
je 0x40625e
cmp dword [ebp + 0xc], ecx
je 0x40625e
push edi
push ecx
push ecx
push dword [ebp + esi*4 - 0x18]
push dword [0x47b2b4]
call eax
or eax, eax
je 0x406298
lea eax, [ebp - 4]
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x47b2b4]
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
or eax, eax
jne 0x40628f
push edi
push dword [ebp - 4]
call dword [sym.imp.shell32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
push eax
pop ebx
call dword [sym.imp.OLE32.DLL_CoTaskMemFree]
or ebx, ebx
jne 0x406298
sub eax, eax
mov word [edi], ax
or esi, esi
jne 0x40623a
cmp word [edi], 0
je 0x4062ec
cmp dword [ebp - 0xc], 0x1a
jne 0x4062ec
push str.0ovip3sfzhihgi8cruom216s97crkpv5e4awkzq42jnsa
push edi
call dword [sym.imp.kernel32.dll_lstrcatW]
jmp 0x4062ec
mov eax, 0xe001
cmp word [ebp + 0xc], ax
jne 0x4062f4
cmp esi, 0x1d
jne 0x4062d0
push dword [0x47b2b4]
push edi
call fcn.004059ff
jmp 0x4062e4
push esi
pop eax
imul eax, eax, 0x4008
add eax, section..ndata
push eax
push edi
call fcn.00405ab8
add esi, 0xffffffeb
cmp esi, 7
jae 0x40630b
push edi
call fcn.00405ae7
jmp 0x40630b
mov eax, 0xe003
cmp word [ebp + 0xc], ax
jne 0x40630b
or eax, 0xffffffff
sbb eax, esi
push eax
push edi
call fcn.004060ca
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
lea edi, [edi + eax*2]
mov eax, 0x46b220
jmp 0x406335
cmp dx, si
jne 0x406330
mov dx, word [ecx]
mov word [edi], dx
inc edi
inc edi
inc ecx
inc ecx
jmp 0x406335
mov word [edi], dx
inc edi
inc edi
movzx edx, word [ecx]
test dx, dx
jne 0x406122
pop esi
pop ebx
sub ecx, ecx
mov word [edi], cx
pop edi
cmp dword [ebp + 8], ecx
je 0x406357
push eax
push dword [ebp + 8]
call fcn.00405ab8
leave
ret 8