Function at 0x421990
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 0x449435
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x45a028]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov eax, dword [0x45a028]
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 ebx, ebx
push 0x1fe
mov dword [esp + 0x304], ebx
lea edx, [esp + 0xf2]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0xf8], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x200
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x24]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x100]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x421eec
xor ecx, ecx
lea eax, [esp + 0xec]
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a75
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x88]
call fcn.00405f90
xor esi, esi
mov dword [esp + 0x48], ebx
lea edx, [esp + 0x1c]
push edx
push SysReAllocString
push ebx
lea eax, [esp + 0xf8]
push eax
mov byte [esp + 0x310], 2
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x421e1c
mov esi, dword [esp + 0x1c]
push ebx
push ebx
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
jne 0x421e66
mov ecx, dword [esp + 0x50]
xor esi, esi
xor eax, eax
mov edi, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
jbe 0x421b46
push ecx
lea esi, [esp + 0x28]
call fcn.0041f610
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, ecx
add eax, edi
je 0x421b3b
push eax
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esi + edi]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x54]
push edx
push ebx
mov byte [esp + 0x310], 3
mov edi, dword [esp + 0x2c]
sub eax, esi
push str.host
add eax, eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x421b9d
mov eax, dword [esp + 0x4c]
cmp eax, 1
je 0x421b84
cmp eax, 2
jne 0x421b9d
cmp esi, ebx
je 0x421c02
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x421bfd
test al, 1
jne 0x421b9d
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x421c02
mov byte [esp + 0x300], 2
cmp esi, ebx
je 0x421bb3
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp edi, ebx
je 0x421bce
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x300], bl
cmp dword [esp + 0x98], 8
mov dword [esp + 0x44], ebx
jb 0x421a1f
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x421a1f
xor eax, eax
mov word [esi], ax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
push ecx
push ebx
push str.useSubDomain
push edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 7
xor edx, edx
mov eax, esi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], dx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x421c50
sub eax, ecx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0xd4]
call fcn.00405f90
mov byte [esp + 0x300], 4
cmp dword [esp + 0x3c], 1
push ebx
sete byte [esp + 0x18]
xor eax, eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0xb8], edi
mov word [esp + 0xa4], ax
push ecx
or eax, 0xffffffff
lea edi, [esp + 0xa8]
mov dword [esp + 0xb8], ebx
call fcn.00405d60
mov dl, byte [esp + 0x14]
mov byte [esp + 0x300], 5
push 0x3c
mov byte [esp + 0xc0], dl
mov dword [esp + 0xcc], ebx
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
cmp eax, ebx
je 0x421ec2
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 0x421d33
mov edx, dword [esp + 0xd0]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], ax
call fcn.00421f20
mov ebx, dword [esp + 0x54]
add ebx, 0x44
lea ecx, [esp + 0xa0]
call fcn.00418210
lea edx, [esp + 0xc0]
mov dword [esp + 0x18], 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.00418f50
mov byte [esp + 0x300], 8
mov eax, dword [esp + 0xc4]
mov edi, dword [sym.imp.mfc100u.dll_delete]
push eax
call edi
add esp, 4
mov byte [esp + 0x300], 3
cmp dword [esp + 0xb4], 8
jb 0x421dd6
mov ecx, dword [esp + 0xa0]
push ecx
call edi
add esp, 4
xor esi, esi
mov byte [esp + 0x300], 2
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], esi
mov word [esp + 0xa0], dx
cmp eax, esi
je 0x421e0a
push eax
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 ebx, ebx
inc dword [esp + 0x20]
mov dword [esp + 0x34], 0x200
cmp esi, ebx
je 0x421e37
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x300], bl
cmp dword [esp + 0x98], 8
mov dword [esp + 0x44], ebx
jb 0x421a1f
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x421a1f
cmp esi, ebx
je 0x421e71
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x300], bl
cmp dword [esp + 0x98], 8
jb 0x421e93
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
cmp eax, ebx
je 0x421ebe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x421eee
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x453b30
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.00441db6
mov esp, ebp
pop ebp
ret 8