Function at 0x412fc5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1003c
call fcn.00431b70
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [0x4c8294], eax
push esi
mov eax, 0x4909ac
mov word [0x4c8290], bx
push edi
mov byte [0x4c8292], bl
mov dword [0x4c8298], ebx
mov dword [0x4c829c], ebx
mov dword [0x4c82a0], ebx
mov dword [0x4c82a4], ebx
mov dword [0x4c82a8], eax
mov dword [0x4c82ac], ebx
mov dword [0x4c82b0], ebx
mov dword [0x4c82b4], ebx
mov dword [0x4c82b8], 0x4909c4
mov dword [0x4c82bc], ebx
mov dword [0x4c82c0], ebx
mov dword [0x4c82c4], ebx
mov dword [0x4c82c8], eax
mov dword [0x4c82cc], ebx
mov dword [0x4c82d0], ebx
mov dword [0x4c82d4], ebx
mov dword [0x4c82dc], ebx
mov dword [0x4c82e0], 0x490968
mov dword [0x4c82e4], ebx
mov dword [0x4c82e8], ebx
mov dword [0x4c82ec], ebx
mov dword [0x4c82f0], 0x66
call fcn.00411207
lea ecx, [esp + 0x28]
call fcn.004200cf
lea edx, [esp + 0x28]
mov ecx, edx
call fcn.004208c1
push str.Include_
lea ecx, [esp + 0x2c]
call fcn.00411900
lea eax, [esp + 0x28]
mov ecx, 0x4c82c8
push eax
call fcn.00414c94
lea ecx, [esp + 0x18]
call fcn.00411207
lea ecx, [esp + 0x18]
call fcn.004119e1
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 1
push esi
push 0x492c70
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4501a3
lea ecx, [esp + 0x18]
call fcn.00411cb6
lea ecx, [esp + 0x28]
call fcn.00411cb6
pop edi
pop esi
mov eax, 0x4c8290
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 0x4a3e88
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x450235
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.00420fe6
pop ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.0041433f
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push esi
xor eax, eax
push eax
push eax
push 0x4a3e88
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x45021d
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.00411821
mov bl, 1
mov eax, dword [esp + 0x3c]
dec dword [eax]
jne 0x450233
push eax
call fcn.0042105c
pop ecx
push esi
call fcn.0042105c
pop ecx
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4130f0
xor eax, eax
xor edi, edi
mov word [esp + 0x48], ax
push esi
lea ecx, [esp + 0x1c]
call fcn.00411609
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.00411609
cmp word [eax], di
je 0x45029b
push esi
lea ecx, [esp + 0x1c]
call fcn.00411609
cmp word [eax], 0x3b
je 0x45029b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00422fbd
pop ecx
pop ecx
jmp 0x45030e
lea eax, [esp + 0x48]
push eax
call fcn.00422e2c
pop ecx
test eax, eax
je 0x4502ce
lea eax, [esp + 0x48]
push eax
call fcn.00422e2c
pop ecx
cmp word [esp + eax*2 + 0x46], 0x5c
je 0x4502ce
lea eax, [esp + 0x48]
push 0x492c4c
push eax
call fcn.00422fbd
pop ecx
pop ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
call fcn.00411a36
lea eax, [esp + 0x38]
mov ecx, 0x4c82c8
push eax
call fcn.00414c94
lea ecx, [esp + 0x38]
call fcn.00411cb6
xor eax, eax
lea ecx, [esp + 0x18]
push esi
mov word [esp + 0x4c], ax
call fcn.00411609
cmp word [eax], di
je 0x4130f0
inc esi
jmp 0x450250