Function at 0x41ca60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x423dd2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov cl, byte [0x42ca4a]
mov al, byte [esp + 0x44]
push ebx
push ebp
push esi
inc cl
xor esi, esi
push edi
mov byte [0x42ca4a], cl
mov byte [esp + 0x30], al
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
xor edi, edi
push 0xb403ffff
push 0x8acfffff
mov dword [esp + 0x50], esi
mov dword [esp + 0x24], edi
call fcn.0040e9b0
add word [0x42ca5e], ax
mov ecx, dword [0x42ca6c]
mov al, byte [0x42ca49]
add esp, 8
sub ecx, 0x6d000001
test al, al
mov dword [0x42ca6c], ecx
je 0x41caf0
mov al, byte [0x42ca4a]
test al, al
je 0x41caf0
mov ebx, 1
mov eax, ebx
jmp 0x41caf7
xor eax, eax
mov ebx, 1
mov ebp, dword [0x42ca88]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x30]
add ebp, eax
push ecx
push ebx
push edx
mov dword [0x42ca88], ebp
call fcn.0041c7f0
add esp, 0xc
test eax, eax
je 0x41cf70
lea eax, [esp + 0x18]
push eax
call fcn.0041c660
add esp, 4
test eax, eax
je 0x41cf70
mov cl, byte [0x42ca74]
mov al, byte [0x42ca4a]
mov dl, byte [0x42ca51]
sub cl, al
mov al, byte [0x42ca48]
add dl, cl
mov byte [0x42ca51], dl
inc al
movsx edx, word [0x42ca52]
push 0xe739ffff
push edx
mov byte [0x42ca48], al
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
call fcn.0040ea40
add esp, 8
cmp ax, si
mov word [0x42ca58], ax
jne 0x41cb93
mov eax, dword [0x42ca74]
mov dword [0x42ca80], esi
cmp eax, esi
je 0x41cb99
mov dword [0x42ca80], ebx
movsx eax, byte [0x42ca4a]
mov edx, dword [0x42ca78]
or eax, 0x2159ffff
add edx, eax
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [0x42ca78], edx
jne 0x41cbc0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ecx
push esi
push eax
push edx
call dword [0x42d020]
mov edi, eax
mov eax, dword [0x42ca84]
imul eax, eax, 0x173ffff
mov ecx, dword [0x42ca68]
push 0x4917ffff
add ecx, eax
push 0x7481ffff
mov dword [0x42ca68], ecx
call fcn.0040e890
add esp, 8
cmp word [0x42ca52], si
mov dword [0x42ca70], eax
jne 0x41cc24
cmp word [0x42ca56], si
jne 0x41cc24
xor eax, eax
jmp 0x41cc26
mov eax, ebx
mov cl, byte [0x42ca4d]
add cl, al
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [0x42ca4d], cl
je 0x41cc87
movsx ecx, byte [0x42ca4f]
push ecx
push 0xdacfffff
call fcn.0040e960
movsx dx, byte [0x42ca4e]
movsx ax, byte [0x42ca49]
movsx ecx, byte [0x42ca50]
add edx, eax
push ecx
push 0x4f67ffff
mov word [0x42ca54], dx
call fcn.0040ea40
add esp, 0x10
mov word [0x42ca60], ax
jmp 0x41cef7
cmp edi, 0xea
jne 0x41ce0c
mov al, byte [0x42ca5c]
mov edx, dword [esp + 0x10]
imul byte [0x42ca50]
inc edx
mov byte [0x42ca4b], al
push edx
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x14]
push 0xa741ffff
mov byte [ebx + eax], 0
movsx ecx, byte [0x42ca51]
push ecx
call fcn.0040e910
mov dl, byte [0x42ca50]
add esp, 0xc
add dl, al
mov eax, dword [esp + 0x34]
cmp eax, esi
mov byte [0x42ca50], dl
jne 0x41cce8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ecx
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41cdd4
mov eax, dword [0x42ca80]
mov ecx, dword [0x42ca84]
push 0xf0cdffff
mov word [0x42ca5e], 0xffff
lea edx, [ecx + eax + 0x9e9ffff]
movsx eax, word [0x42ca62]
push eax
mov dword [0x42ca84], edx
call fcn.0040e7e0
add word [0x42ca56], ax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x54]
push 1
not ecx
dec ecx
mov ebp, ecx
mov ecx, edi
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41cd8f
mov edi, dword [edi + 4]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x54]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x54]
mov dword [eax + 8], ebp
mov eax, dword [eax + 4]
xor esi, esi
mov byte [eax + ebp], 0
movsx ecx, byte [0x42ca4f]
dec word [0x42ca60]
push ecx
push 0xc5fffff
mov word [0x42ca5c], 0xffff
call fcn.0040e840
mov cl, byte [0x42ca4b]
push edi
add cl, al
mov byte [0x42ca4b], cl
call fcn.0040fa20
add esp, 0xc
test al, al
je 0x41cdd4
mov dword [esp + 0x1c], 1
movsx edx, word [0x42ca60]
push 0x3e53ffff
push edx
call fcn.0040e910
mov dword [0x42ca7c], eax
mov al, byte [0x42ca4b]
inc al
inc word [0x42ca5e]
push ebx
mov byte [0x42ca4b], al
call sub.MFC42.DLL_operatordelete
add esp, 0xc
jmp 0x41cef7
cmp edi, esi
jne 0x41cef7
mov ax, word [0x42ca64]
xor ecx, ecx
cmp ax, si
mov edi, dword [0x42ca70]
setne cl
mov dl, byte [esp + 0x54]
mov word [0x42ca52], cx
xor ecx, ecx
cmp word [0x42ca5c], si
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], esi
setne cl
add edi, ecx
mov dword [esp + 0x28], esi
mov dword [0x42ca70], edi
mov dword [esp + 0x2c], esi
movsx ecx, word [0x42ca58]
movsx edx, ax
push ecx
push edx
mov byte [esp + 0x50], 1
call fcn.0040e8d0
mov ecx, dword [0x42ca6c]
inc word [0x42ca58]
mov word [0x42ca64], ax
movsx eax, word [0x42ca5a]
push eax
push ecx
call fcn.0040e8d0
add word [0x42ca5c], ax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
add esp, 0x10
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov edi, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov edi, dword [eax + 0xc]
mov dword [eax + 0xc], edx
add word [0x42ca58], 0xfffe
cmp ecx, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x48], 0
je 0x41cef7
mov al, byte [ecx - 1]
test al, al
je 0x41ceed
cmp al, 0xff
je 0x41ceed
dec al
mov byte [ecx - 1], al
jmp 0x41cef7
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
movsx edx, word [0x42ca58]
movsx eax, word [0x42ca64]
push edx
push eax
call fcn.0040e960
mov cl, byte [0x42ca4d]
mov ebp, dword [0x42ca70]
mov edx, dword [esp + 0x20]
add cl, al
mov byte [0x42ca4d], cl
mov cl, byte [0x42ca68]
inc cl
add ebp, 0x51300001
push edx
mov byte [0x42ca50], cl
mov dword [0x42ca70], ebp
call fcn.0041c7a0
mov al, byte [0x42ca8c]
mov dl, byte [0x42ca74]
mov cl, byte [0x42ca4f]
mov edi, dword [esp + 0x28]
or al, dl
add esp, 0xc
add cl, al
mov dword [0x42ca70], 0x89aa0000
mov byte [0x42ca4f], cl
mov ebp, dword [0x42ca84]
xor eax, eax
cmp word [0x42ca60], si
push 0xf1b1ffff
push 0x4f6dffff
setne al
add ebp, eax
mov dword [0x42ca84], ebp
call fcn.0040e890
mov ecx, dword [esp + 0x3c]
add esp, 8
cmp ecx, esi
mov byte [0x42ca4d], al
je 0x41cfc5
mov al, byte [ecx - 1]
test al, al
je 0x41cfbb
cmp al, 0xff
je 0x41cfbb
dec al
mov byte [ecx - 1], al
jmp 0x41cfc5
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret