Function at 0x402e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424da8
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x7fe
lea edx, [ebp - 0x842]
mov dword [ebp - 0x884], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x88c], eax
mov byte [ebp - 0x87d], bl
mov dword [ebp - 0x888], ebx
mov word [ebp - 0x844], cx
call fcn.0041a000
add esp, 0xc
mov dword [ebp - 0x890], 0x400
mov dword [ebp - 0x40], 0x9c1214f0
mov dword [ebp - 0x3c], 0x1f1e03be
mov dword [ebp - 0x38], 0x39d51f1f
mov dword [ebp - 0x34], 0xdffb9c9d
mov dword [ebp - 0x30], 0x1bd9174
mov dword [ebp - 0x2c], 0xfd73d1c9
mov dword [ebp - 0x28], 0x8895ac2f
mov dword [ebp - 0x24], 0x78bc52b1
mov dword [ebp - 0x20], 0x1ab4294e
mov dword [ebp - 0x1c], 0x4bece7bf
mov dword [ebp - 0x8b0], ebx
mov dword [ebp - 0x8ac], ebx
mov dword [ebp - 0x8a8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8a0], ebx
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x898], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x88c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x40]
xor eax, eax
push ecx
push eax
lea esi, [ebp - 0x8b0]
call fcn.0040ad40
lea edx, [ebp - 0x8a0]
push edx
mov ecx, esi
call fcn.00402480
add esp, 4
cmp al, bl
je 0x403149
mov ecx, dword [ebp - 0x8a0]
push ebx
lea edx, [ebp - 0x860]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 3
mov edi, 8
mov dword [ebp - 0x884], 1
cmp dword [eax + 0x14], edi
jb 0x402fbc
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea ecx, [ebp - 0x888]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
test eax, eax
je 0x403028
mov ecx, dword [ebp - 0x8a0]
push ebx
lea edx, [ebp - 0x87c]
call fcn.00402510
add esp, 4
mov dword [ebp - 0x884], 3
cmp dword [eax + 0x14], edi
jb 0x403005
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x888]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
mov byte [ebp - 0x87e], bl
test eax, eax
jne 0x40302f
mov byte [ebp - 0x87e], 1
test byte [ebp - 0x884], 2
je 0x40306f
and dword [ebp - 0x884], 0xfffffffd
cmp dword [ebp - 0x868], edi
jb 0x403056
mov eax, dword [ebp - 0x87c]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x868], 7
mov dword [ebp - 0x86c], ebx
mov word [ebp - 0x87c], cx
mov dword [ebp - 4], 2
test byte [ebp - 0x884], 1
je 0x403096
cmp dword [ebp - 0x84c], edi
jb 0x403096
mov edx, dword [ebp - 0x860]
push edx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x87e], bl
je 0x403149
push ebx
mov ecx, 0x42918c
lea edx, [ebp - 0x860]
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x4030bd
mov eax, dword [eax]
lea ecx, [ebp - 0x890]
push ecx
lea edx, [ebp - 0x844]
push edx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x888]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [ebp - 0x87e]
cmp dword [ebp - 0x84c], edi
jb 0x4030fb
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x87e], bl
je 0x403149
lea eax, [ebp - 0x844]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403110
mov esi, dword [ebp - 0x88c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x844]
call fcn.00409a60
mov byte [ebp - 0x87d], 1
jmp 0x403149
mov eax, dword [ebp - 0x888]
cmp eax, ebx
je 0x403160
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x888], ebx
mov eax, dword [ebp - 0x8a0]
cmp eax, ebx
je 0x403173
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x8b0]
cmp eax, ebx
je 0x403186
push eax
call fcn.004140b8
add esp, 4
mov al, byte [ebp - 0x87d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret