Function at 0x4075a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
push edi
jge 0x4075be
mov ecx, dword [0x4397e8]
lea eax, [ebp*4 + 4]
sub ecx, eax
mov ebp, dword [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [0x43d840]
mov edi, 0x4353a0
mov ecx, eax
sub ecx, edi
add ebp, edx
cmp ecx, 0x4000
jae 0x4075e5
mov edi, eax
mov dword [esp + 0x24], 0
mov cl, byte [ebp]
test cl, cl
je 0x40782b
push ebx
push esi
mov edx, edi
sub edx, 0x4353a0
cmp edx, 0x2000
jge 0x407829
add ebp, 1
cmp cl, 0xfc
jbe 0x40780a
movsx eax, byte [ebp + 1]
movsx ebx, byte [ebp]
mov esi, eax
and esi, 0x7f
mov edx, ebx
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, ebx
or dh, 0x80
add ebp, 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov edx, eax
or dh, 0x80
cmp cl, 0xfe
mov dword [esp + 0x20], edx
jne 0x40779c
mov ebp, 2
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x407680
cmp ax, 0x5a04
je 0x407680
mov esi, dword [esp + 0x24]
cmp esi, 0x23
je 0x407680
cmp esi, 0x2e
je 0x407680
mov dword [esp + 0x30], 0
jmp 0x40768c
mov esi, dword [esp + 0x24]
mov dword [esp + 0x30], 1
cmp dword [0x43d8c4], 0
je 0x40769a
mov ebp, 4
test bl, bl
jns 0x4076fc
mov eax, ebx
and eax, 0x40
push eax
push edi
and ebx, 0x3f
add ebx, dword [0x43d840]
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406ed0
cmp byte [edi], 0
jne 0x4076d3
push esi
push edi
call fcn.004075a0
cmp byte [edi], 0
je 0x4076e4
mov esi, dword [esp + 0x24]
cmp esi, 0x1a
jne 0x4076e4
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call fcn.00407060
mov ebp, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
jmp 0x40781e
cmp ebx, 0x25
jne 0x40770f
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4076ca
cmp ebx, 0x24
jne 0x407722
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4076ca
test ebp, ebp
je 0x4076ca
mov eax, dword [0x43d800]
sub ebp, 1
test eax, eax
je 0x407754
cmp dword [esp + 0x30], 0
je 0x407754
mov ecx, dword [esp + ebp*4 + 0x18]
mov edx, dword [0x43d804]
push edi
push 0
push 0
push ecx
push edx
call eax
test eax, eax
je 0x4076ca
mov ecx, dword [esp + ebp*4 + 0x18]
mov edx, dword [0x43d804]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407790
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x4076ca
test ebp, ebp
mov byte [edi], 0
jne 0x407726
jmp 0x4076e4
cmp cl, 0xfd
jne 0x4077ee
cmp esi, 0x1d
jne 0x4077be
mov edx, dword [0x43d804]
push edx
push 0x40acec
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4077d5
mov eax, esi
shl eax, 0xd
push 0x2000
add eax, section..ndata
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esi, 0xffffffeb
cmp esi, 7
jae 0x4077ff
push edi
call fcn.00407060
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
jmp 0x40781e
cmp cl, 0xff
jne 0x4077ff
or ecx, 0xffffffff
sub ecx, esi
push ecx
push edi
call fcn.004075a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
jmp 0x40781e
jne 0x407819
mov dl, byte [ebp]
mov byte [edi], dl
add edi, 1
add ebp, 1
jmp 0x40781e
mov byte [edi], cl
add edi, 1
mov cl, byte [ebp]
test cl, cl
jne 0x4075f2
pop esi
pop ebx
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [edi], 0
pop edi
pop ebp
je 0x40784f
push 0x2000
push 0x4353a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esp, 0x18
ret 8
mov eax, 0x4353a0
add esp, 0x18
ret 8