Function at 0x40c910
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4363cb
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x44c250]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c250]
xor eax, esp
push eax
lea eax, [esp + 0x45c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x470]
mov esi, dword [esp + 0x46c]
xor ebx, ebx
push 0x206
mov edi, ecx
lea edx, [esp + 0x256]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x25c], cx
call fcn.00422000
mov eax, dword [edi + 0x5f8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push ebx
push ebx
push 0x14b
push eax
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], ebx
call ebp
mov ecx, dword [edi + 0x5f8]
push ebx
push ebx
push 0x303
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 0x80000001
call esi
test eax, eax
jne 0x40ca98
lea eax, [esp + 0x1c]
push eax
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_SettingsProfiles
push 0x80000001
call esi
test eax, eax
je 0x40ca2a
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_SettingsProfiles
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40ca98
lea eax, [esp + 0x1c]
push eax
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_SettingsProfiles
push 0x80000001
call esi
test eax, eax
jne 0x40ca98
lea ecx, [esp + 0x48]
push ecx
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x278]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, ebx
je 0x40cac2
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x45c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.00421fea
add esp, 0x454
ret 8
mov esi, dword [esp + 0x18]
push esi
push str.Last_Profile
push str.SoftwareDameWare_DevelopmentDWRCSMSIDialog_SettingsProfiles
mov ecx, edi
call fcn.0040b5f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jge 0x40caf9
cmp dword [esp + 0x20], 1
jae 0x40caf9
mov eax, dword [edi + 0x784]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jbe 0x40ca98
xor eax, eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x28], eax
cmp ecx, ebx
jbe 0x40cbb8
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x64]
push ecx
push eax
push edx
mov dword [esp + 0x44], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x40cb9b
mov ecx, dword [edi + 0x5f8]
lea eax, [esp + 0x50]
push eax
push ebx
push 0x143
push ecx
call ebp
mov esi, eax
cmp esi, ebx
jl 0x40cb9b
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40cb9b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40cb9b
mov edx, dword [esp + 0x18]
push edx
lea ecx, [edi + 0xbe0]
call fcn.00403560
push esi
lea ecx, [edi + 0x5d8]
call fcn.0040b820
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x20]
jb 0x40cb13
cmp byte [esp + 0x17], bl
jne 0x40ca98
call fcn.00413279
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cbd2
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ecx, dword [edi + 0x5f8]
push ebx
push ebx
push 0x149
push ecx
mov dword [esp + 0x474], ebx
call ebp
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, eax
or ecx, edx
jge 0x40cc18
push eax
lea ecx, [esp + 0x1c]
call fcn.00402120
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x5f8]
push esi
push ebx
push 0x148
push edx
call ebp
lea eax, [esp + 0x18]
lea ecx, [edi + 0xbe0]
push eax
call fcn.00409f60
mov ecx, dword [edi + 0x5f8]
push ebx
push ebx
push 0x14e
push ecx
call ebp
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40cc6a
push edx
lea ecx, [esp + 0x1c]
call fcn.00402120
mov esi, dword [esp + 0x18]
push esi
lea ecx, [edi + 0x5d8]
call fcn.004136c0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00423cdd
add esp, 8
cmp eax, ebx
jl 0x40ccc5
cmp eax, dword [esi - 8]
jg 0x40ccc5
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
lea eax, [esi - 0x10]
mov dword [esp + 0x464], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ca98
push 0x80070057
call fcn.00401340
int3