Function at 0x4230c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4486e9
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x45a028]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x45a028]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xf8]
push edx
push edi
push esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, edi
jne 0x4235e9
mov edi, edi
lea eax, [esp + 0x38]
push eax
push SysReAllocString
push edi
lea ecx, [esp + 0xf0]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x423602
mov eax, dword [esp + 0x38]
push edi
push edi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x423191
mov ebx, eax
jmp 0x4235a6
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
mov dword [esp + 0x2f8], edi
mov esi, dword [esp + 0x30]
inc esi
cmp esi, edi
ja 0x4231c4
mov ecx, esi
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004060a0
jmp 0x423206
cmp esi, 0xffffffff
jae 0x4235f7
cmp esi, edi
jbe 0x423206
lea eax, [esp + 0x54]
call fcn.00406120
test al, al
je 0x423206
mov edx, dword [esp + 0x64]
mov ecx, esi
lea eax, [esp + 0x54]
call fcn.0041f680
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], esi
jae 0x423200
lea eax, [esp + 0x54]
xor ecx, ecx
mov word [eax + esi*2], cx
xor esi, esi
xor edx, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov byte [esp + 0x2f8], 1
mov eax, dword [esp + 0x14]
mov ebx, eax
cmp eax, edi
jbe 0x423263
xor ecx, ecx
cmp eax, edi
jbe 0x423230
mov ecx, eax
push ecx
lea esi, [esp + 0x24]
call fcn.0041f610
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, ebx
sub ecx, edx
add ecx, esi
je 0x42325d
push ecx
push edi
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
add ebx, esi
mov dword [esp + 0x24], ebx
xor edx, edx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], dx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], edi
mov byte [esp + 0x2f8], 2
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x30]
inc ecx
cmp dword [esp + 0x68], 8
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
jae 0x4232d1
lea eax, [esp + 0x54]
lea edx, [esp + 0x50]
push edx
push esi
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x58]
push edi
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp ebx, edi
jne 0x4234d4
cmp dword [esp + 0x44], 1
jne 0x4234c7
mov eax, dword [esp + 0x54]
mov ebx, 8
cmp dword [esp + 0x68], ebx
jae 0x42331b
lea eax, [esp + 0x54]
push str.host
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x42335e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x423333
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0xac]
call fcn.00405f90
inc dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x4232b5
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebx
jae 0x42336c
lea eax, [esp + 0x54]
mov ebx, dword [sym.imp.MSVCR100.dll_wcsstr]
push str.sourceReplace
push eax
call ebx
add esp, 8
test eax, eax
je 0x423415
xor edx, edx
mov eax, esi
mov word [esp + 0x8c], dx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4233a6
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x90]
call fcn.00405f90
lea ecx, [esp + 0x8c]
lea ebx, [esp + 0xc4]
mov byte [esp + 0x2f8], 3
call fcn.00417ef0
mov byte [esp + 0x2f8], 2
cmp dword [esp + 0xa0], 8
jb 0x4234c5
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.mfc100u.dll_delete]
mov eax, dword [esp + 0x18]
add esp, 4
xor edi, edi
inc dword [esp + 0x18]
jmp 0x4232b5
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x423424
lea eax, [esp + 0x54]
push 0x44ff80
push eax
call ebx
add esp, 8
test eax, eax
je 0x4234c7
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], edi
mov word [esp + 0x70], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x423455
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x74]
call fcn.00405f90
lea ecx, [esp + 0x70]
lea ebx, [esp + 0xd4]
mov byte [esp + 0x2f8], 4
call fcn.00417ef0
mov byte [esp + 0x2f8], 2
cmp dword [esp + 0x84], 8
jb 0x4234a8
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
xor edi, edi
inc dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x4232b5
cmp ebx, 0x103
jne 0x42354b
mov ebx, dword [esp + 0x48]
add ebx, 0x3c
lea ecx, [esp + 0xa8]
call fcn.00418340
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0x2fc], 1
call fcn.00416df0
xor ebx, ebx
mov byte [esp + 0x2f8], bl
cmp esi, ebx
je 0x42351b
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x423547
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor edi, edi
jmp 0x4235a2
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x2fc], 1
call fcn.00416df0
mov byte [esp + 0x2f8], 0
cmp esi, edi
je 0x423576
push esi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jb 0x4235a2
mov ecx, dword [esp + 0x54]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x423602
mov eax, dword [esp + 0x34]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xf8]
inc eax
push edx
push eax
push esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, edi
je 0x423140
lea eax, [ecx - 0x103]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x423604
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov eax, ebx
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret 4