Function at 0x403b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c3e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x280], ebx
push 1
mov eax, 0x4291c0
mov esi, edi
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
call fcn.00409a60
mov dword [ebp - 0x3c], 0x2537160b
mov dword [ebp - 0x38], 0x20be4e2a
mov dword [ebp - 0x34], 0x39d51f1f
mov dword [ebp - 0x30], 0xdffb9c9d
mov dword [ebp - 0x2c], 0x4ae99484
mov dword [ebp - 0x28], 0x3ccb0db5
mov dword [ebp - 0x24], 0xb434bab5
mov dword [ebp - 0x20], 0x925b3508
mov dword [ebp - 0x1c], 0x5aad297d
mov dword [ebp - 0x18], 0x40707c8d
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3c]
push edx
push ebx
lea esi, [ebp - 0x2b0]
call fcn.0040ad40
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push ebx
lea esi, [ebp - 0x2c0]
call fcn.0040ad40
push 0x1fe
lea ecx, [ebp - 0x23e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x240], ax
call fcn.0041a000
lea edx, [ebp - 0x2a0]
add esp, 0xc
push edx
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x290], 0x200
mov byte [ebp - 4], 4
call fcn.00402480
add esp, 4
cmp al, 1
jne 0x403e9b
mov ecx, dword [ebp - 0x2a0]
push ebx
lea edx, [ebp - 0x25c]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x280], 1
jb 0x403cd4
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea ecx, [ebp - 0x284]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
test eax, eax
je 0x403d41
mov ecx, dword [ebp - 0x2a0]
push ebx
lea edx, [ebp - 0x278]
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x280], 3
jb 0x403d1e
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x284]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
mov byte [ebp - 0x279], bl
test eax, eax
jne 0x403d48
mov byte [ebp - 0x279], 1
test byte [ebp - 0x280], 2
mov esi, 8
je 0x403d8d
and dword [ebp - 0x280], 0xfffffffd
cmp dword [ebp - 0x264], esi
jb 0x403d74
mov eax, dword [ebp - 0x278]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], ebx
mov word [ebp - 0x278], cx
mov dword [ebp - 4], 4
test byte [ebp - 0x280], 1
je 0x403db4
cmp dword [ebp - 0x248], esi
jb 0x403db4
mov edx, dword [ebp - 0x25c]
push edx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x279], bl
je 0x403e9b
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00402480
add esp, 4
cmp al, 1
jne 0x403e9b
mov ecx, dword [ebp - 0x2d0]
push ebx
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x28c], 1
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x403e03
mov eax, dword [eax]
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x240]
push edx
mov edx, dword [ebp - 0x284]
lea ecx, [ebp - 0x28c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [ebp - 0x279]
cmp dword [ebp - 0x248], esi
jb 0x403e47
mov eax, dword [ebp - 0x25c]
push eax
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x279], bl
je 0x403e9b
lea eax, [ebp - 0x240]
lea edx, [eax + 2]
jmp 0x403e60
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403e60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x240]
mov esi, edi
call fcn.00409a60
mov dword [ebp - 0x288], 1
jmp 0x403e9b
mov eax, dword [ebp - 0x284]
cmp eax, ebx
je 0x403eb2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x284], ebx
mov eax, dword [ebp - 0x2d0]
cmp eax, ebx
je 0x403ec5
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2a0]
cmp eax, ebx
je 0x403ed8
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2c0]
cmp eax, ebx
je 0x403eeb
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2b0]
cmp eax, ebx
je 0x403efe
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret