Function at 0x40704b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1003c
call fcn.00432450
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [0x4c9294], eax
push esi
mov eax, 0x491968
mov word [0x4c9290], bx
push edi
mov byte [0x4c9292], bl
mov dword [0x4c9298], ebx
mov dword [0x4c929c], ebx
mov dword [0x4c92a0], ebx
mov dword [0x4c92a4], ebx
mov dword [0x4c92a8], eax
mov dword [0x4c92ac], ebx
mov dword [0x4c92b0], ebx
mov dword [0x4c92b4], ebx
mov dword [0x4c92b8], 0x491b88
mov dword [0x4c92bc], ebx
mov dword [0x4c92c0], ebx
mov dword [0x4c92c4], ebx
mov dword [0x4c92c8], eax
mov dword [0x4c92cc], ebx
mov dword [0x4c92d0], ebx
mov dword [0x4c92d4], ebx
mov dword [0x4c92dc], ebx
mov dword [0x4c92e0], 0x491918
mov dword [0x4c92e4], ebx
mov dword [0x4c92e8], ebx
mov dword [0x4c92ec], ebx
mov dword [0x4c92f0], 0x66
call fcn.00407627
lea ecx, [esp + 0x28]
call fcn.004046c8
lea edx, [esp + 0x28]
mov ecx, edx
call fcn.00420fe0
push str.Include_
lea ecx, [esp + 0x2c]
call fcn.00407c6b
lea eax, [esp + 0x28]
mov ecx, 0x4c92c8
push eax
call fcn.00403f34
lea ecx, [esp + 0x18]
call fcn.00407627
lea ecx, [esp + 0x18]
call fcn.00407d4c
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 1
push esi
push 0x493d08
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43f351
lea ecx, [esp + 0x18]
call fcn.004058c4
lea ecx, [esp + 0x28]
call fcn.004058c4
pop edi
pop esi
mov eax, 0x4c9290
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
push str.Include
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x43f3e3
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004218c6
pop ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004051ee
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push esi
xor eax, eax
push eax
push eax
push str.Include
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x43f3cb
mov eax, dword [esp + 0x14]
xor ecx, ecx
shr eax, 1
mov dword [esp + 0x14], eax
push esi
mov word [esi + eax*2], cx
lea ecx, [esp + 0x1c]
call fcn.00407b8c
mov bl, 1
mov eax, dword [esp + 0x3c]
dec dword [eax]
jne 0x43f3e1
push eax
call fcn.0042193c
pop ecx
push esi
call fcn.0042193c
pop ecx
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x407176
xor eax, eax
xor edi, edi
mov word [esp + 0x48], ax
push esi
lea ecx, [esp + 0x1c]
call fcn.004079b2
push esi
lea ecx, [esp + 0x1c]
mov ax, word [eax]
mov word [esp + 0x14], ax
xor eax, eax
mov word [esp + 0x16], ax
call fcn.004079b2
cmp word [eax], di
je 0x43f449
push esi
lea ecx, [esp + 0x1c]
call fcn.004079b2
cmp word [eax], 0x3b
je 0x43f449
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0042389d
pop ecx
pop ecx
jmp 0x43f4bc
lea eax, [esp + 0x48]
push eax
call fcn.0042370c
pop ecx
test eax, eax
je 0x43f47c
lea eax, [esp + 0x48]
push eax
call fcn.0042370c
pop ecx
cmp word [esp + eax*2 + 0x46], 0x5c
je 0x43f47c
lea eax, [esp + 0x48]
push 0x491ac0
push eax
call fcn.0042389d
pop ecx
pop ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407da1
lea eax, [esp + 0x38]
mov ecx, 0x4c92c8
push eax
call fcn.00403f34
lea ecx, [esp + 0x38]
call fcn.004058c4
xor eax, eax
lea ecx, [esp + 0x18]
push esi
mov word [esp + 0x4c], ax
call fcn.004079b2
cmp word [eax], di
je 0x407176
inc esi
jmp 0x43f3fe