Function at 0x100302c0
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 0x10050125
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x10067068]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov eax, dword [0x10067068]
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 0x1003081b
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 0x100303a5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf0]
lea esi, [esp + 0x88]
call fcn.1000cf60
xor esi, esi
mov dword [esp + 0x48], edi
lea edx, [esp + 0x1c]
push edx
push SysReAllocString
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 0x10030749
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 0x10030794
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 0x1003047c
push ecx
lea esi, [esp + 0x28]
call fcn.10029360
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 0x10030471
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 0x100304cf
mov eax, dword [esp + 0x4c]
cmp eax, 1
je 0x100304b6
cmp eax, 2
jne 0x100304cf
cmp ebx, edi
je 0x10030535
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10030530
test al, 1
jne 0x100304cf
shr eax, 1
cmp word [ebx + eax*2 - 2], di
je 0x10030535
mov byte [esp + 0x300], 2
cmp ebx, edi
je 0x100304e5
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 0x10030500
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 0x1003034f
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1003034f
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 0x10030580
sub eax, ecx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0xd4]
call fcn.1000cf60
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.1000c030
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 0x100307f1
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 0x10030668
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.10030850
mov edi, dword [esp + 0x54]
add edi, 0x44
lea ecx, [esp + 0xa0]
call fcn.10031580
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.1001d540
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 0x10030707
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 0x10030737
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 0x10030764
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 0x1003034f
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1003034f
cmp esi, edi
je 0x1003079f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x300], 0
cmp dword [esp + 0x98], 8
jb 0x100307c2
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 0x100307ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1003081d
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 0x1005f2c8
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.10048188
mov esp, ebp
pop ebp
ret 8