Function at 0x405f6f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x405f8d
mov ecx, dword [0x44527c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x4492d8]
push ebx
push esi
push edi
lea edx, [eax + ecx]
mov ecx, dword [ebp + 8]
mov eax, 0x440a40
sub ecx, eax
mov edi, eax
cmp ecx, 0x4000
jae 0x405fb4
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov cl, byte [edx]
test cl, cl
mov byte [ebp + 0xf], cl
je 0x4061aa
jmp 0x405fc6
mov cl, byte [ebp + 0xf]
mov esi, edi
sub esi, eax
cmp esi, 0x2000
jge 0x4061aa
inc edx
cmp cl, 0xfc
jbe 0x406190
movsx eax, byte [edx + 1]
movsx ecx, byte [edx]
mov esi, eax
mov ebx, ecx
and esi, 0x7f
and ebx, 0x7f
shl esi, 7
or esi, ebx
mov ebx, ecx
mov dword [ebp - 0x14], eax
or ch, 0x80
or ah, 0x80
inc edx
inc edx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jne 0x406138
push 2
pop esi
call dword [0x4080e8]
test eax, 0x80000000
je 0x406041
cmp ax, 0x5a04
je 0x406041
cmp dword [ebp - 0x14], 0x23
je 0x406041
cmp dword [ebp - 0x14], 0x2e
je 0x406041
and dword [ebp + 0xc], 0
jmp 0x406048
mov dword [ebp + 0xc], 1
cmp dword [0x449324], 0
je 0x406054
push 4
pop esi
test bl, 0x80
je 0x406089
mov eax, ebx
and ebx, 0x3f
add ebx, dword [0x4492d8]
and eax, 0x40
push eax
push edi
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405e21
cmp byte [edi], 0
jne 0x4060ad
push dword [ebp - 0x14]
push edi
call fcn.00405f6f
jmp 0x4060ad
cmp ebx, 0x25
jne 0x40609c
push 0x2000
push edi
call dword [0x4080e4]
jmp 0x4060ad
cmp ebx, 0x24
jne 0x4060af
push 0x2000
push edi
call dword [0x4080a4]
xor esi, esi
mov eax, esi
dec esi
test eax, eax
je 0x40611a
lea ebx, [ebp + esi*4 - 0x1c]
mov eax, dword [0x4492a4]
xor ecx, ecx
cmp eax, ecx
je 0x4060db
cmp dword [ebp + 0xc], ecx
je 0x4060db
push edi
push ecx
push ecx
push dword [ebx]
push dword [0x4492a8]
call eax
test eax, eax
je 0x40611a
lea eax, [ebp - 4]
push eax
push dword [ebx]
push dword [0x4492a8]
call dword [0x408164]
test eax, eax
jne 0x40610d
push edi
push dword [ebp - 4]
call dword [0x408150]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [0x408284]
cmp dword [ebp - 8], 0
jne 0x40611a
and byte [edi], 0
mov eax, esi
dec esi
sub ebx, 4
test eax, eax
jne 0x4060ba
cmp byte [edi], 0
je 0x406130
cmp dword [ebp - 0x14], 0x1a
jne 0x406130
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call fcn.00405f5e
push edi
call fcn.004061c3
jmp 0x40617e
cmp byte [ebp + 0xf], 0xfd
jne 0x40616c
cmp esi, 0x1d
jne 0x406151
push dword [0x4492a8]
push edi
call fcn.00405e98
jmp 0x406162
mov eax, esi
shl eax, 0xd
add eax, section..ndata
push eax
push edi
call fcn.00405f3b
add esi, 0xffffffeb
cmp esi, 7
jae 0x40617e
jmp 0x406130
cmp byte [ebp + 0xf], 0xff
jne 0x40617e
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405f6f
push edi
call fcn.00405f51
mov edx, dword [ebp - 0xc]
add edi, eax
mov eax, 0x440a40
jmp 0x40619d
jne 0x40619a
mov cl, byte [edx]
mov byte [edi], cl
inc edi
inc edx
jmp 0x40619d
mov byte [edi], cl
inc edi
mov cl, byte [edx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405fc3
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x4061bf
push eax
push dword [ebp + 8]
call fcn.00405f3b
leave
ret 8