Function at 0x4062c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x4062e1
mov ecx, dword [0x447a1c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x44ba78]
push ebx
push esi
push edi
lea ebx, [eax + ecx]
mov ecx, dword [ebp + 8]
mov eax, 0x43b9c0
sub ecx, eax
mov edi, eax
cmp ecx, 0x4000
jae 0x406308
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov dl, byte [ebx]
test dl, dl
je 0x4064e5
mov ecx, edi
sub ecx, eax
cmp ecx, 0x2000
jge 0x4064e5
inc ebx
cmp dl, 0xfc
mov dword [ebp + 0xc], ebx
jbe 0x4064c9
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov ebx, ecx
and esi, 0x7f
and ebx, 0x7f
shl esi, 7
or esi, ebx
mov ebx, 0x8000
mov dword [ebp - 0x14], eax
or eax, ebx
mov dword [ebp - 0x1c], ecx
push 2
or ecx, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop eax
add ebx, eax
cmp dl, 0xfe
mov dword [ebp - 0x18], ecx
jne 0x406475
and dword [ebp - 4], 0
and dword [ebp + 0xc], 0
and byte [edi], 0
cmp dword [ebp - 0x14], 4
jne 0x406386
mov dword [ebp - 4], str.MicrosoftInternet_ExplorerQuick_Launch
mov dword [ebp + 0xc], eax
mov esi, dword [ebp - 0x1c]
cmp esi, 0x2b
jne 0x4063a3
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406187
cmp esi, 0x26
jne 0x4063cd
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406187
cmp byte [edi], 0
jne 0x40640b
push str.C:Program_Files
push edi
call fcn.00406294
cmp esi, 0x25
jne 0x4063de
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, 0x24
jne 0x4063ef
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x40640b
cmp dword [0x44bac4], 0
mov dword [ebp + 0xc], 4
jne 0x40640b
mov dword [ebp + 0xc], 2
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test eax, eax
je 0x40645f
mov eax, dword [ebp + 0xc]
lea esi, [ebp + eax*4 - 0x1c]
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [0x44ba44]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40644f
push edi
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.00405a99
cmp dword [ebp - 0xc], 0
jne 0x40645f
jmp 0x406452
and byte [edi], 0
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0xc]
sub esi, 4
test eax, eax
jne 0x40641c
cmp byte [edi], 0
je 0x4064a6
cmp dword [ebp - 4], 0
je 0x4064a6
push dword [ebp - 4]
push edi
call fcn.004062b2
jmp 0x4064a6
cmp dl, 0xfd
jne 0x4064b6
cmp esi, 0x1b
jne 0x40648d
push dword [0x44ba44]
push edi
call fcn.004061f1
jmp 0x40649e
mov eax, esi
shl eax, 0xd
add eax, section..ndata
push eax
push edi
call fcn.00406294
add esi, 0xffffffeb
cmp esi, 6
jae 0x4064ac
push edi
call fcn.00406504
push edi
call fcn.004062a5
add edi, eax
jmp 0x4064d6
cmp dl, 0xff
jne 0x4064d6
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004062c3
jmp 0x4064ac
jne 0x4064d3
mov al, byte [ebx]
mov byte [edi], al
inc edi
inc ebx
jmp 0x4064d6
mov byte [edi], dl
inc edi
mov dl, byte [ebx]
mov eax, 0x43b9c0
test dl, dl
jne 0x406312
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x406500
push 0x2000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
leave
ret 8