Function at 0x496560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4ed3dc]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.HTTP_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4965bb
jmp 0x4967c0
mov word [ebp - 0x230], 0
push 0x206
push 0
lea ecx, [ebp - 0x22e]
push ecx
call fcn.00470e10
add esp, 0xc
mov dword [ebp - 0xc], 0x104
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x230]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49660b
jmp 0x4967c0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x230]
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x458]
add eax, 2
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x458]
mov dx, word [ecx]
mov word [ebp - 0x45e], dx
add dword [ebp - 0x458], 2
cmp word [ebp - 0x45e], 0
jne 0x49662d
mov eax, dword [ebp - 0x458]
sub eax, dword [ebp - 0x45c]
sar eax, 1
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
sub ecx, 1
mov dword [ebp - 0x18], ecx
movzx edx, word [ebp - 0x230]
cmp edx, 0x22
jne 0x496681
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x230]
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
add ecx, 2
mov dword [ebp - 0x46c], ecx
mov edx, dword [ebp - 0x468]
mov ax, word [edx]
mov word [ebp - 0x46e], ax
add dword [ebp - 0x468], 2
cmp word [ebp - 0x46e], 0
jne 0x49669c
mov ecx, dword [ebp - 0x468]
sub ecx, dword [ebp - 0x46c]
sar ecx, 1
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp - 0x474]
sub edx, 1
mov dword [ebp - 0x234], edx
jmp 0x4966f1
mov eax, dword [ebp - 0x234]
sub eax, 1
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
cmp ecx, dword [ebp - 0x1c]
jle 0x49676d
mov word [ebp - 0x23c], 0
xor edx, edx
mov dword [ebp - 0x23a], edx
mov word [ebp - 0x236], dx
push 3
mov eax, dword [ebp - 0x234]
lea ecx, [ebp + eax*2 - 0x234]
push ecx
push 4
lea edx, [ebp - 0x23c]
push edx
call fcn.0046fcf8
add esp, 0x10
mov word [ebp - 0x236], 0
push 0x4d5c0c
lea eax, [ebp - 0x23c]
push eax
call fcn.00470391
add esp, 8
test eax, eax
jne 0x496768
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 1
jmp 0x49676d
jmp 0x4966e2
cmp dword [ebp - 0x10], 0
je 0x4967c0
mov edx, dword [ebp + 8]
mov word [edx], 0x22
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + ecx*2 - 0x230]
push edx
push 0x103
mov eax, dword [ebp + 8]
add eax, 2
push eax
call fcn.0046fcf8
add esp, 0x10
push 0x4d5c14
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046f023
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x4967d0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x496899
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x240]
push ecx
push 0x20019
push 0
push 0x4d5c18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x496883
mov word [ebp - 0x450], 0
push 0x206
push 0
lea edx, [ebp - 0x44e]
push edx
call fcn.00470e10
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x450]
push ecx
lea edx, [ebp - 0x244]
push edx
push 0
push str.ProgramFilesDir
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
jne 0x496883
lea ecx, [ebp - 0x450]
push ecx
push str._sInternet_ExplorerIEXPLORE.exe
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.0046f887
add esp, 0x10
mov dword [ebp - 4], 1
cmp dword [ebp - 0x240], 0
je 0x496899
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0046ec29
mov esp, ebp
pop ebp
ret