Function at 0x40f080
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49d4a7
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
mov eax, dword [esp + 0x840]
mov ecx, dword [esp + 0x844]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.00468b49
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40f0ed
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebp
push str.http_shellopencommand
push SysReAllocString
mov dword [esp + 0x84c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f19f
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
push ebp
push ebp
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x40f192
mov eax, dword [esp + 0x14]
cmp eax, ebp
jbe 0x40f192
push eax
mov ebp, eax
call fcn.0046083a
mov edi, eax
add esp, 4
test edi, edi
je 0x40f192
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
push 0
push 0
push edx
call ebx
test eax, eax
jne 0x40f189
cmp dword [esp + 0x14], ebp
jne 0x40f189
push edi
lea ecx, [esp + 0x1c]
call fcn.00401d90
mov esi, dword [esp + 0x18]
push edi
call fcn.0046082f
add esp, 4
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov eax, dword [esi - 0xc]
cmp eax, ebp
jle 0x40f315
push 0x22
push esi
call fcn.00482e2a
add esp, 8
cmp eax, ebp
jne 0x40f23b
or edi, 0xffffffff
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ebp
mov ebx, 1
jl 0x40f1fa
nop
cmp eax, ebp
jl 0x40f288
cmp eax, dword [esi - 0xc]
jg 0x40f288
movzx edx, word [esi + eax*2]
cmp dx, 0x20
je 0x40f1f5
cmp dx, 9
jne 0x40f281
sub eax, 1
jns 0x40f1d0
cmp edi, ebp
jl 0x40f292
cmp ecx, ebp
jl 0x40f292
cmp ebx, ebp
je 0x40f292
cmp edi, ecx
je 0x40f315
sub ecx, edi
dec ecx
push ecx
inc edi
push edi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call fcn.00406960
mov byte [esp + 0x838], 1
jmp 0x40f2df
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40f1c0
mov ecx, dword [esi - 0xc]
lea eax, [edi + 1]
cmp eax, ebp
jl 0x40f1c0
cmp eax, ecx
jge 0x40f1c0
lea ecx, [esi + eax*2]
push 0x22
push ecx
call fcn.00482e2a
add esp, 8
cmp eax, ebp
je 0x40f1c0
sub eax, esi
sar eax, 1
mov ecx, eax
jmp 0x40f1c3
xor ebx, ebx
jmp 0x40f1fa
push 0x80070057
call fcn.00401210
push 0x5c
push esi
call fcn.004840f3
add esp, 8
cmp eax, ebp
je 0x40f315
sub eax, esi
sar eax, 1
cmp eax, ebp
jle 0x40f315
cmp eax, dword [esi - 0xc]
jge 0x40f315
lea ecx, [esi + eax*2]
push 0x20
push ecx
call fcn.00482e2a
add esp, 8
cmp eax, ebp
je 0x40f315
sub eax, esi
sar eax, 1
cmp eax, ebp
jle 0x40f315
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call fcn.0040ef40
mov byte [esp + 0x838], 2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a50
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x838], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f311
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403c10
mov edx, dword [esp + 0x1c]
mov bl, 3
mov byte [esp + 0x838], bl
cmp dword [edx - 0xc], ebp
jne 0x40f345
push 0xb
push str.about:blank
lea ecx, [esp + 0x24]
call fcn.00401760
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
mov ebp, 1
cmp ecx, 7
jb 0x40f361
mov ecx, 7
push ecx
push str.mailto:
push ecx
push edx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40f427
cmp dword [esi - 0xc], 0
je 0x40f427
call fcn.00468b49
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f39f
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push 0x4a9220
push edx
mov byte [esp + 0x844], 4
call fcn.00404580
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push 0
push 1
push 0
push edi
push esi
push str.open
push eax
call fcn.0041cb60
add esp, 0x28
or edx, 0xffffffff
test eax, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x838], bl
lea ecx, [eax + 0xc]
je 0x40f412
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f453
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f47d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f47d
lea edx, [esp + 0x14]
push edx
xor ecx, ecx
lea eax, [esp + 0x30]
push eax
push ecx
push 0x4a9210
push 2
push ecx
mov dword [esp + 0x2c], 0x400
mov word [esp + 0x44], cx
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
jl 0x40f47b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push 0
push 1
push 0
push 0
push ecx
push str.open
push edx
call fcn.0041cb60
add esp, 0x1c
test eax, eax
je 0x40f47d
or ebp, 0xffffffff
jmp 0x40f47d
xor ebp, ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x838], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x838], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.00482b5f
add esp, 0x828
ret