Function at 0x4036c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424cbe
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
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 dword [ebp - 0x298], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], 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], 0x4194c2f8
mov dword [ebp - 0x20], 0x596a4b3e
mov dword [ebp - 0x1c], 0x120e0011
mov dword [ebp - 0x18], 0x86e53aeb
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2dc], ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x54]
xor eax, eax
push ecx
push eax
lea esi, [ebp - 0x2c4]
call fcn.0040ad40
mov edx, dword [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
xor eax, eax
push edx
push eax
lea esi, [ebp - 0x2d4]
call fcn.0040ad40
push 0x1fe
lea ecx, [ebp - 0x256]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x258], ax
call fcn.0041a000
lea edx, [ebp - 0x2b4]
add esp, 0xc
push edx
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2a4], 0x200
mov byte [ebp - 4], 4
call fcn.00401dd0
add esp, 4
cmp al, 1
jne 0x403a32
mov ecx, dword [ebp - 0x2b4]
push ebx
lea edx, [ebp - 0x274]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 5
mov edi, 8
mov dword [ebp - 0x298], 1
cmp dword [eax + 0x14], edi
jb 0x403876
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea ecx, [ebp - 0x29c]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
test eax, eax
je 0x4038e2
mov ecx, dword [ebp - 0x2b4]
push ebx
lea edx, [ebp - 0x290]
call fcn.00402510
add esp, 4
mov dword [ebp - 0x298], 3
cmp dword [eax + 0x14], edi
jb 0x4038bf
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x29c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
mov byte [ebp - 0x291], bl
test eax, eax
jne 0x4038e9
mov byte [ebp - 0x291], 1
test byte [ebp - 0x298], 2
je 0x403929
and dword [ebp - 0x298], 0xfffffffd
cmp dword [ebp - 0x27c], edi
jb 0x403910
mov eax, dword [ebp - 0x290]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], ebx
mov word [ebp - 0x290], cx
mov dword [ebp - 4], 4
test byte [ebp - 0x298], 1
je 0x403950
cmp dword [ebp - 0x260], edi
jb 0x403950
mov edx, dword [ebp - 0x274]
push edx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x291], bl
je 0x403a32
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.00401dd0
add esp, 4
cmp al, 1
jne 0x403a32
mov ecx, dword [ebp - 0x2e4]
push ebx
lea edx, [ebp - 0x274]
mov dword [ebp - 0x298], 1
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x40399f
mov eax, dword [eax]
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [ebp - 0x291]
cmp dword [ebp - 0x260], edi
jb 0x4039e3
mov eax, dword [ebp - 0x274]
push eax
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x291], bl
je 0x403a32
lea eax, [ebp - 0x258]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4039f4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x258]
mov esi, 0x4313a0
call fcn.00409a60
mov dword [ebp - 0x2a0], 1
jmp 0x403a32
mov eax, dword [ebp - 0x29c]
cmp eax, ebx
je 0x403a49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x29c], ebx
mov eax, dword [ebp - 0x2e4]
cmp eax, ebx
je 0x403a5c
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2b4]
cmp eax, ebx
je 0x403a6f
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2d4]
cmp eax, ebx
je 0x403a82
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2c4]
cmp eax, ebx
je 0x403a95
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x2a0]
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