Function at 0x1002c2d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004d865
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x10063068]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov eax, dword [0x10063068]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
xor edi, edi
push 0x1fe
mov dword [esp + 0x304], edi
lea edx, [esp + 0xf2]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x2c], edi
mov word [esp + 0xf8], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x200
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x24]
push edi
push edi
push edi
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x100]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1002c82b
xor ecx, ecx
lea eax, [esp + 0xec]
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], edi
mov word [esp + 0x84], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1002c3b5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf0]
lea esi, [esp + 0x88]
call fcn.1000a770
xor esi, esi
mov dword [esp + 0x48], edi
lea edx, [esp + 0x1c]
push edx
push SysReAllocStringLen
push edi
lea eax, [esp + 0xf8]
push eax
mov byte [esp + 0x310], 2
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1002c759
mov esi, dword [esp + 0x1c]
push edi
push edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, edi
jne 0x1002c7a4
mov ecx, dword [esp + 0x50]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
cmp ecx, edi
jbe 0x1002c48c
push ecx
lea esi, [esp + 0x28]
call fcn.100270f0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov eax, ebx
sub eax, ecx
add eax, esi
je 0x1002c481
push eax
push edi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebx + esi]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x54]
push edx
push edi
sub eax, ebx
push str.host
add eax, eax
mov byte [esp + 0x314], 3
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1002c4df
mov eax, dword [esp + 0x4c]
cmp eax, 1
je 0x1002c4c6
cmp eax, 2
jne 0x1002c4df
cmp ebx, edi
je 0x1002c545
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x1002c540
test al, 1
jne 0x1002c4df
shr eax, 1
cmp word [ebx + eax*2 - 2], di
je 0x1002c545
mov byte [esp + 0x300], 2
cmp ebx, edi
je 0x1002c4f5
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
cmp esi, edi
je 0x1002c510
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x40], edi
mov byte [esp + 0x300], 0
cmp dword [esp + 0x98], 8
mov dword [esp + 0x44], edi
jb 0x1002c35f
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1002c35f
xor eax, eax
mov word [ebx], ax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
push ecx
push edi
push str.useSubDomain
push esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov eax, ebx
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], edi
mov word [esp + 0xd0], dx
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x1002c590
sub eax, ecx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0xd4]
call fcn.1000a770
mov byte [esp + 0x300], 4
cmp dword [esp + 0x3c], 1
push edi
sete byte [esp + 0x1c]
xor eax, eax
lea ecx, [esp + 0xd4]
mov word [esp + 0xa4], ax
push ecx
mov esi, 7
or eax, 0xffffffff
lea ecx, [esp + 0xa8]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
call fcn.10009fd0
mov dl, byte [esp + 0x18]
mov byte [esp + 0x300], 5
push 0x3c
mov byte [esp + 0xc0], dl
mov dword [esp + 0xcc], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x1002c801
mov dword [esp + 0xc4], eax
mov dword [eax], eax
mov eax, dword [esp + 0xc4]
mov dword [eax + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [eax + 8], eax
mov eax, dword [esp + 0xc4]
mov byte [eax + 0x38], 1
mov ecx, dword [esp + 0xc4]
mov byte [ecx + 0x39], 1
mov byte [esp + 0x300], 7
cmp dword [esp + 0xe4], 8
jb 0x1002c678
mov edx, dword [esp + 0xd0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], ax
call fcn.1002c860
mov edi, dword [esp + 0x54]
add edi, 0x44
lea ecx, [esp + 0xa0]
call fcn.1002d580
lea edx, [esp + 0xc0]
mov dword [esp + 0x14], edx
mov byte [esp + 0x300], 9
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x64]
mov esi, edx
call fcn.1001c2d0
mov byte [esp + 0x300], 8
mov eax, dword [esp + 0xc4]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push eax
call edi
add esp, 4
mov byte [esp + 0x300], 3
cmp dword [esp + 0xb4], 8
jb 0x1002c717
mov ecx, dword [esp + 0xa0]
push ecx
call edi
add esp, 4
xor esi, esi
xor edx, edx
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], esi
mov word [esp + 0xa0], dx
mov byte [esp + 0x300], 2
cmp ebx, esi
je 0x1002c747
push ebx
call edi
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x40]
xor edi, edi
inc dword [esp + 0x20]
mov dword [esp + 0x34], 0x200
cmp esi, edi
je 0x1002c774
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x40], edi
mov byte [esp + 0x300], 0
cmp dword [esp + 0x98], 8
mov dword [esp + 0x44], edi
jb 0x1002c35f
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1002c35f
cmp esi, edi
je 0x1002c7af
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x300], 0
cmp dword [esp + 0x98], 8
jb 0x1002c7d2
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], edi
mov word [esp + 0x84], dx
cmp eax, edi
je 0x1002c7fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1002c82d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1005bf30
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
xor eax, eax
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 8