Function at 0x40111d
Capabilities:
Get common file path

Disassembly:
jmp 0x407e2b
mov eax, dword [esp + 8]
sub esp, 0x14
test eax, eax
jns 0x407e47
mov ecx, dword [0x484a58]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x48e478]
mov edx, 0x47ca00
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
lea ebp, [ecx + eax*2]
xor ecx, ecx
push edi
mov edi, edx
cmp ebx, edx
jb 0x407e79
mov eax, ebx
sub eax, edx
sar eax, 1
cmp eax, 0x4000
jae 0x407e79
mov edi, ebx
mov ebx, ecx
mov dword [esp + 0x24], ebx
movzx ecx, word [ebp]
test cx, cx
je 0x40808e
push esi
push 2
pop ebx
push 4
pop esi
mov eax, edi
sub eax, edx
and eax, 0xfffffffe
cmp eax, 0x4000
jge 0x408089
movzx edx, cx
add ebp, ebx
cmp dx, si
jae 0x408063
movsx esi, byte [ebp + 1]
movsx eax, byte [ebp]
and esi, 0x7f
movzx ecx, byte [ebp]
and eax, 0x7f
shl esi, 7
or esi, eax
mov dword [esp + 0x18], ecx
mov eax, ecx
or eax, 0x8000
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 1]
add ebp, ebx
mov dword [esp + 0x20], eax
or eax, 0x8000
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebp
cmp dx, bx
jne 0x40800e
cmp dword [0x48e524], 0
mov ebp, ebx
push 4
pop eax
cmovne ebp, eax
test cl, cl
jns 0x407f3d
mov ebx, dword [0x48e478]
mov eax, ecx
and eax, 0x40
and ecx, 0x3f
push eax
push edi
lea eax, [ebx + ecx*2]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00401005
mov esi, dword [esp + 0x20]
xor ebx, ebx
cmp word [edi], bx
jne 0x407f59
push esi
push edi
call fcn.0040111d
jmp 0x407f54
cmp ecx, 0x25
jne 0x407f7c
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
mov esi, dword [esp + 0x20]
cmp word [edi], bx
je 0x407f6a
cmp esi, 0x1a
jne 0x407f6a
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00401096
mov ebp, dword [esp + 0x10]
push 2
pop ebx
jmp 0x408055
cmp ecx, 0x24
jne 0x407f93
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
mov ebp, ebx
jmp 0x408005
xor ebx, ebx
jmp 0x408005
mov eax, dword [esp + ebp*4 + 0x10]
dec ebp
mov ecx, dword [0x486410]
and eax, 0xffffffbf
mov esi, eax
mov dword [esp + 0x2c], eax
and esi, 0x8000
test ecx, ecx
je 0x407fc5
push edi
push ebx
push ebx
push eax
push dword [0x486418]
call ecx
test eax, eax
je 0x407f50
push 7
call fcn.00401136
mov ecx, eax
mov eax, dword [esp + 0x2c]
push esi
movzx eax, al
push eax
push dword [0x486418]
call ecx
mov ebx, eax
test ebx, ebx
je 0x407ffe
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push ebx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x407f4e
xor eax, eax
push eax
mov word [edi], ax
pop ebx
test ebp, ebp
jne 0x407f97
jmp 0x407f50
cmp edx, 3
jne 0x408047
cmp esi, 0x1d
jne 0x408026
push dword [0x486418]
push edi
call fcn.00401014
jmp 0x408037
mov eax, esi
shl eax, 0xe
add eax, section..ndata
push eax
push edi
call fcn.00401078
lea eax, [esi - 0x15]
cmp eax, 7
jae 0x408055
push edi
call fcn.00401096
jmp 0x408055
cmp edx, 1
jne 0x408055
not esi
push esi
push edi
call fcn.0040111d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
add eax, eax
pop esi
jmp 0x408075
jne 0x408070
mov ax, word [ebp]
add ebp, ebx
mov word [edi], ax
jmp 0x408073
mov word [edi], dx
mov eax, ebx
movzx ecx, word [ebp]
add edi, eax
mov edx, 0x47ca00
test cx, cx
jne 0x407e8d
mov ebx, dword [esp + 0x28]
pop esi
xor eax, eax
mov word [edi], ax
test ebx, ebx
je 0x4080a0
push edx
push ebx
call fcn.00401078
jmp 0x4080a2
mov eax, edx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 8