Function at 0x4991d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fc303
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x72d630]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x83c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x850]
mov ebx, dword [esp + 0x84c]
push ebp
mov eax, 0x6b70dc
call fcn.00499c00
mov esi, ebp
call fcn.004772e0
lea edi, [ebp + 0x18]
mov dword [ebp + 0x14], 0xffffffff
call fcn.00473180
xor esi, esi
lea edi, [ebp + 0x24]
mov dword [ebp + 0x1c], esi
call fcn.00473180
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x28], 1
call fcn.00472830
mov dword [esp + 0x844], esi
or edi, 0xffffffff
cmp word [ebx], 0x2e
push esi
lea esi, [esp + 0x18]
je 0x4992a6
mov eax, ebx
call fcn.004728e0
mov byte [esp + 0x844], 1
mov eax, esi
push eax
mov esi, ebp
call fcn.0041d870
mov byte [esp + 0x844], 0
lea ecx, [esp + 0x14]
call fcn.004740c0
push 0x2e
lea edi, [esp + 0x20]
call fcn.00472b20
jmp 0x4992d3
lea eax, [ebx + 2]
call fcn.004728e0
mov byte [esp + 0x844], 2
lea ecx, [esp + 0x14]
push ecx
mov esi, ebp
call fcn.0041d870
mov byte [esp + 0x844], 0
lea ecx, [esp + 0x14]
call fcn.004740c0
push 0
or edi, 0xffffffff
mov eax, ebx
lea esi, [esp + 0x18]
call fcn.004728e0
mov byte [esp + 0x844], 3
mov edx, esi
push edx
lea edi, [esp + 0x20]
call fcn.00472a90
mov byte [esp + 0x844], 0
mov ecx, esi
call fcn.004740c0
mov eax, edi
call fcn.004221b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
push eax
push closesocket
mov dword [esp + 0x44], eax
call ebx
test eax, eax
je 0x499347
mov dword [esp + 0x844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004740c0
xor al, al
jmp 0x49960e
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], 0
test esi, esi
jne 0x4993d8
cmp dword [esp + 0x28], 2
jbe 0x4993d8
push 6
lea ecx, [esp + 0x3c]
push str.CLSID_
push ecx
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x49932c
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.00499640
add esp, 4
test al, al
jne 0x499477
push ebp
lea eax, [esp + 0x3c]
call fcn.00499c00
jmp 0x499477
lea ecx, [esp + 0x18]
call fcn.00472830
mov byte [esp + 0x844], 4
lea eax, [esp + 0x20]
push eax
mov edx, 1
lea ecx, [esp + 0x20]
call fcn.00472de0
mov byte [esp + 0x844], 5
lea edi, [esp + 0x18]
call fcn.00472a50
mov byte [esp + 0x844], 4
lea ecx, [esp + 0x20]
call fcn.004740c0
mov eax, edi
call fcn.00472ca0
push 0
or edi, 0xffffffff
mov eax, str._File
lea esi, [esp + 0x18]
call fcn.004728e0
mov byte [esp + 0x844], 6
mov ecx, esi
push ecx
lea edi, [esp + 0x1c]
call fcn.00472a90
mov byte [esp + 0x844], 4
mov ecx, esi
call fcn.004740c0
mov eax, edi
call fcn.004221b0
push ebp
call fcn.00499c00
mov byte [esp + 0x844], 0
mov ecx, edi
call fcn.004740c0
lea eax, [ebp + 0x24]
call fcn.00473170
test al, al
je 0x49956a
lea eax, [esp + 0x1c]
lea esi, [esp + 0x14]
call fcn.00472850
mov byte [esp + 0x844], 7
push 0
or edi, 0xffffffff
mov eax, str._shellopencommand
lea esi, [esp + 0x24]
call fcn.004728e0
mov byte [esp + 0x844], 8
mov edx, esi
push edx
lea edi, [esp + 0x18]
call fcn.00472a90
mov byte [esp + 0x844], 7
mov ecx, esi
call fcn.004740c0
lea eax, [esp + 0x18]
push eax
mov edi, 1
push edi
push 0
lea eax, [esp + 0x20]
call fcn.004221b0
push eax
push closesocket
call ebx
test eax, eax
jne 0x499559
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
test esi, esi
jne 0x499559
cmp dword [esp + 0x20], edi
jbe 0x499559
lea eax, [esp + 0x438]
push eax
lea esi, [ebp + 0x24]
mov eax, esi
call fcn.00472a30
mov ecx, esi
call fcn.00499f70
mov byte [esp + 0x844], 0
lea ecx, [esp + 0x14]
call fcn.004740c0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x24]
push ecx
push 1
xor edi, edi
push edi
push edx
push closesocket
call ebx
cmp eax, edi
jne 0x49932c
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push str.Content_Type
push eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], edi
cmp esi, edi
jne 0x4995f5
cmp dword [esp + 0x28], 1
jbe 0x4995f5
push 4
lea edx, [esp + 0x3c]
push str.text
push edx
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0xc
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp + 0x20], eax
jmp 0x4995f8
mov dword [ebp + 0x20], edi
mov dword [esp + 0x844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004740c0
mov al, 1
mov ecx, dword [esp + 0x83c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.005e038a
add esp, 0x834
ret