Function at 0x43a530
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
test ecx, ecx
jns 0x43a55e
lea eax, [ecx*4 + 4]
mov ecx, dword [0x4a88ac]
sub ecx, eax
mov ecx, dword [ecx]
mov eax, dword [0x4a88d0]
push ebx
push esi
mov esi, 0x4aa120
lea ebx, [eax + ecx*2]
cmp edx, esi
jb 0x43a587
mov eax, edx
sub eax, esi
sar eax, 1
cmp eax, 0x4008
jae 0x43a587
mov esi, edx
mov dword [ebp - 0x2c], 0
movzx ecx, word [ebx]
test cx, cx
je 0x43a854
push edi
mov edi, 0xe000
nop dword [eax]
mov eax, esi
mov edx, ebx
sub eax, 0x4aa120
and eax, 0xfffffffe
cmp eax, 0x4008
jge 0x43a853
movzx ecx, cx
add ebx, 2
test ecx, 0xe000
je 0x43a82d
cmp cx, di
jbe 0x43a830
movzx ebx, word [ebx]
movzx eax, bl
mov edi, ebx
shr ebx, 8
and edi, 0x7fff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
or eax, 0x8000
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
or ebx, 0x8000
mov dword [ebp - 0x14], eax
mov eax, 0xe002
mov dword [ebp - 0xc], ebx
lea ebx, [edx + 4]
mov dword [ebp - 0x34], ebx
cmp cx, ax
jne 0x43a7b2
mov ebx, 2
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x43a63e
mov ecx, 0x5a04
cmp ax, cx
je 0x43a63e
mov eax, dword [ebp - 0x18]
cmp eax, 0x23
je 0x43a63e
cmp eax, 0x2e
je 0x43a63e
xor ecx, ecx
jmp 0x43a643
mov ecx, 1
cmp dword [0x4a8864], 0
mov eax, 4
mov edx, dword [ebp - 0x1c]
cmovne ebx, eax
mov dword [ebp - 0x28], ecx
test dl, dl
jns 0x43a6ef
mov eax, dword [0x4a88d0]
mov ecx, edx
and ecx, 0x3f
and edx, 0x40
shl edx, 2
or edx, 0x20019
lea edi, [eax + ecx*2]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20]
push eax
push edx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43a6dd
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4008
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43a6c6
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x43a6cb
cmp eax, 2
je 0x43a6cb
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x20]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
mov edi, dword [ebp - 0x18]
jne 0x43a709
push edi
push esi
call fcn.0043a530
jmp 0x43a703
cmp edx, 0x25
jne 0x43a736
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [ebp - 0x18]
cmp word [esi], 0
je 0x43a71a
cmp edi, 0x1a
jne 0x43a71a
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call fcn.0043b550
mov ebx, dword [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov edi, 0xe000
jmp 0x43a845
cmp edx, 0x24
jne 0x43a750
push 0x2004
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x43a700
mov eax, dword [0x4b2130]
dec ebx
test eax, eax
je 0x43a76f
test ecx, ecx
je 0x43a76f
push esi
push 0
push 0
push dword [ebp + ebx*4 - 0x14]
push 0
call eax
test eax, eax
je 0x43a700
lea eax, [ebp - 0x24]
push eax
push dword [ebp + ebx*4 - 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x43a7a0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x24]
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jne 0x43a700
xor eax, eax
mov word [esi], ax
test ebx, ebx
je 0x43a71a
mov ecx, dword [ebp - 0x28]
jmp 0x43a750
mov eax, 0xe001
cmp cx, ax
jne 0x43a80a
cmp edi, 0x1d
jne 0x43a7d4
push 0
push 0x45c508
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x43a7ec
imul eax, edi, 0x4008
push 0x2004
add eax, section..ndata
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [edi - 0x15]
cmp eax, 7
jae 0x43a81d
push esi
call fcn.0043b550
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov edi, 0xe000
jmp 0x43a845
mov eax, 0xe003
cmp cx, ax
jne 0x43a81d
not edi
push edi
push esi
call fcn.0043a530
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov edi, 0xe000
jmp 0x43a845
cmp cx, di
jne 0x43a83d
mov ax, word [ebx]
lea ebx, [edx + 4]
mov word [esi], ax
jmp 0x43a840
mov word [esi], cx
mov eax, 2
movzx ecx, word [ebx]
add esi, eax
test cx, cx
jne 0x43a5a0
pop edi
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x2c]
pop esi
pop ebx
test eax, eax
je 0x43a883
push 0x2004
push 0x4aa120
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x4aa120
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 8