Function at 0x403240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d3e
mov eax, dword fs:[0]
push eax
sub esp, 0x8dc
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
push 0x7fe
lea ecx, [ebp - 0x856]
xor eax, eax
push ebx
mov dword [ebp - 0x898], ebx
push ecx
mov dword [ebp - 0x8a0], ebx
mov word [ebp - 0x858], ax
call fcn.0041a000
add esp, 0xc
mov dword [ebp - 0x8a4], 0x400
mov dword [ebp - 0x89c], ebx
mov dword [ebp - 0x54], 0x73e3133c
mov dword [ebp - 0x50], 0xcc55a318
mov dword [ebp - 0x4c], 0x2880529c
mov dword [ebp - 0x48], 0x24c95c0d
mov dword [ebp - 0x44], 0x6a5266cd
mov dword [ebp - 0x40], 0x8d04c1a6
mov dword [ebp - 0x3c], 0x68c52c9
mov dword [ebp - 0x38], 0xa85717a8
mov dword [ebp - 0x34], 0x229d36d9
mov dword [ebp - 0x30], 0x554a46e6
mov dword [ebp - 0x2c], 0xdeb3d5c8
mov dword [ebp - 0x28], 0xbf571c9b
mov dword [ebp - 0x24], 0x18aa2e5f
mov dword [ebp - 0x20], 0xe2dfab79
mov dword [ebp - 0x1c], 0xdb9decd6
mov dword [ebp - 0x18], 0xc4aa4940
mov dword [ebp - 0x8c4], ebx
mov dword [ebp - 0x8c0], ebx
mov dword [ebp - 0x8bc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8d4], ebx
mov dword [ebp - 0x8d0], ebx
mov dword [ebp - 0x8cc], ebx
mov dword [ebp - 0x8b4], ebx
mov dword [ebp - 0x8b0], ebx
mov dword [ebp - 0x8ac], ebx
mov dword [ebp - 0x8e4], ebx
mov dword [ebp - 0x8e0], ebx
mov dword [ebp - 0x8dc], ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x8a4]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x54]
xor eax, eax
push edx
push eax
lea esi, [ebp - 0x8c4]
call fcn.0040ad40
mov ecx, dword [ebp - 0x8a4]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
xor eax, eax
push ecx
push eax
lea esi, [ebp - 0x8d4]
call fcn.0040ad40
lea edx, [ebp - 0x8b4]
push edx
lea ecx, [ebp - 0x8c4]
mov byte [ebp - 4], 4
call fcn.00401dd0
add esp, 4
cmp al, 1
jne 0x4035b2
mov ecx, dword [ebp - 0x8b4]
push ebx
lea edx, [ebp - 0x874]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 5
mov edi, 8
mov dword [ebp - 0x898], 1
cmp dword [eax + 0x14], edi
jb 0x4033f6
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea ecx, [ebp - 0x89c]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push connect
call esi
test eax, eax
je 0x403462
mov ecx, dword [ebp - 0x8b4]
push ebx
lea edx, [ebp - 0x890]
call fcn.00402510
add esp, 4
mov dword [ebp - 0x898], 3
cmp dword [eax + 0x14], edi
jb 0x40343f
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x89c]
push edx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push connect
call esi
mov byte [ebp - 0x891], bl
test eax, eax
jne 0x403469
mov byte [ebp - 0x891], 1
test byte [ebp - 0x898], 2
je 0x4034a9
and dword [ebp - 0x898], 0xfffffffd
cmp dword [ebp - 0x87c], edi
jb 0x403490
mov eax, dword [ebp - 0x890]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], ebx
mov word [ebp - 0x890], cx
mov dword [ebp - 4], 4
test byte [ebp - 0x898], 1
je 0x4034d0
cmp dword [ebp - 0x860], edi
jb 0x4034d0
mov edx, dword [ebp - 0x874]
push edx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x891], bl
je 0x4035b2
lea eax, [ebp - 0x8e4]
push eax
lea ecx, [ebp - 0x8d4]
call fcn.00401dd0
add esp, 4
cmp al, 1
jne 0x4035b2
mov ecx, dword [ebp - 0x8e4]
push ebx
lea edx, [ebp - 0x874]
mov dword [ebp - 0x898], 1
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x40351f
mov eax, dword [eax]
lea ecx, [ebp - 0x8a4]
push ecx
lea edx, [ebp - 0x858]
push edx
mov edx, dword [ebp - 0x89c]
lea ecx, [ebp - 0x898]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [ebp - 0x891]
cmp dword [ebp - 0x860], edi
jb 0x403563
mov eax, dword [ebp - 0x874]
push eax
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x891], bl
je 0x4035b2
lea eax, [ebp - 0x858]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403574
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x858]
mov esi, 0x4313bc
call fcn.00409a60
mov dword [ebp - 0x8a0], 1
jmp 0x4035b2
mov eax, dword [ebp - 0x89c]
cmp eax, ebx
je 0x4035c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x89c], ebx
mov eax, dword [ebp - 0x8e4]
cmp eax, ebx
je 0x4035dc
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x8b4]
cmp eax, ebx
je 0x4035ef
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x8d4]
cmp eax, ebx
je 0x403602
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x8c4]
cmp eax, ebx
je 0x403615
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x8a0]
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