Function at 0x40c590
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41173e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x80]
mov dword [esp + 0x2a8], ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push 0x418384
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push 0x418484
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x418584
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push 0x418684
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push 0x418784
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x418a84
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push 0x418b84
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push 0x418c84
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x418884
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push 0x418984
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push 0x418d84
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x418e84
push SysStringLen
call esi
cmp eax, ebx
je 0x40c746
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x40c776
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
lea eax, [esp + 0xa0]
push edx
push eax
push ebx
push ebx
push 0x417d9c
push ecx
mov dword [esp + 0x40], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40c797
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.0040fafe
xor eax, eax
jmp 0x40cc2f
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x40]
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi - 1]
mov byte [esp + 0x2a8], 1
cmp ebp, ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x60], ebp
jl 0x40cbf2
mov esi, 1
mov dword [esp + 0x38], esi
push esi
lea ecx, [esp + 0x1a4]
push 0x417d90
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x58]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x1ac]
push 0
push edx
push eax
mov dword [esp + 0x40], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cbe2
lea ecx, [esp + 0x70]
lea edx, [esp + 0xa0]
push ecx
push edx
mov ecx, edi
call fcn.0040cc60
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0040cdc0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x5c], ebx
je 0x40cbe2
lea eax, [esp + 0x14]
push ebx
push eax
mov ecx, edi
call fcn.0040cd10
push 0x417678
lea ecx, [esp + 0x18]
mov byte [esp + 0x2ac], 2
call sub.MFC42.DLL_CString::Find_3
push 0x28
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CString::Find_1
cmp ebp, eax
jle 0x40c8bc
push 0x417678
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_3
jmp 0x40c8c7
push 0x28
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40c8fe
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2ac], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0x2a8], 2
call fcn.0040fafe
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40c931
lea edx, [ecx + eax]
mov al, byte [ecx + eax - 1]
cmp al, 0xd
je 0x40c918
cmp al, 0xa
jne 0x40c919
dec ecx
mov dl, byte [edx - 2]
cmp dl, 0xd
je 0x40c926
cmp dl, 0xa
jne 0x40c927
dec ecx
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBufferSetLength
lea edx, [esp + 0x14]
lea ecx, [esp + 0x40]
push edx
call sub.MFC42.DLL_CString::operator
push ebx
mov ecx, edi
mov dword [esp + 0x48], ebx
call fcn.0040cf60
sub esp, 0x10
mov ebp, eax
mov dword [esp + 0x5c], esi
mov esi, esp
lea eax, [esp + 0x50]
mov dword [esp + 0x34], esp
push eax
mov ecx, esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x5c], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x54]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x5c]
lea ecx, [edi + 4]
mov dword [esi + 0xc], eax
call fcn.0040d300
xor esi, esi
test ebp, ebp
mov dword [esp + 0x24], esi
jle 0x40cbc9
lea ecx, [esp + 0x90]
lea edx, [esp + 0x80]
push ecx
push 1
push edx
push 0x417ba4
push ebx
mov ecx, edi
mov word [esp + 0x94], 3
mov dword [esp + 0x9c], esi
call fcn.0040ce30
test eax, eax
je 0x40cbbc
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x2b4], 4
call fcn.0040cfd0
push 0x417d8c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2ac], 5
call sub.MFC42.DLL_CString::Find_3
mov edi, eax
lea ecx, [esp + 0x18]
push edi
push 0x417d84
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x40cb96
push edi
push 0x417d84
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
xor ebp, ebp
xor esi, esi
test eax, eax
mov dword [esp + 0x20], eax
jle 0x40cac8
push 2
lea ecx, [esp + 0x54]
push esi
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41766c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x50]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x40ca8a
inc ebp
add esi, 2
jmp 0x40cabc
push 1
lea edx, [esp + 0x68]
push esi
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
call edi
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x40cabb
inc ebp
inc esi
mov eax, dword [esp + 0x20]
cmp esi, eax
jl 0x40ca4e
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
lea edi, [eax + 4]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 6
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x2ac], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator
sub esp, 0xc
lea edx, [esp + 0x38]
mov esi, esp
mov dword [esp + 0x2c], esp
push edx
mov ecx, esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x3c]
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x2b8], 8
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2b4], 7
mov dword [esi + 8], ecx
mov ecx, 0x418fc0
call fcn.0040d220
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a8], 9
call fcn.0040fafe
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a8], 5
call fcn.0040fafe
push edi
push 0x417d84
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x40ca33
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2a8], 4
call fcn.0040fafe
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a8], 2
call fcn.0040fafe
mov edi, dword [esp + 0x68]
inc esi
cmp esi, ebp
mov dword [esp + 0x24], esi
jl 0x40c99c
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 1
call fcn.0040fafe
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x60]
inc esi
mov dword [esp + 0x38], esi
lea edx, [esi - 1]
cmp edx, ebp
jle 0x40c7db
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], 0
mov byte [esp + 0x2a8], 0
call fcn.0040fafe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.0040fafe
mov eax, 1
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x29c
ret