Function at 0x40d1ff
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c9d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esi + 0x28c]
mov byte [esp + 0x138], 1
cmp eax, ebx
je 0x40d24c
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x40d535
push edi
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 1
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
mov ecx, esi
call fcn.0040d550
cmp dword [esi + 0x288], ebx
je 0x40d499
mov ecx, esi
call fcn.0040d880
cmp dword [esi + 0x290], ebx
je 0x40d2ac
mov ecx, esi
call fcn.0040db20
lea edi, [esi + 0x300]
push ebx
mov ecx, edi
call fcn.00401ff0
mov eax, dword [esi + 0x328]
mov ecx, edi
cmp eax, ebx
je 0x40d2a7
call fcn.004025f0
jmp 0x40d2ac
call fcn.00402640
cmp dword [esi + 0x294], ebx
jne 0x40d2bc
cmp dword [esi + 0x298], ebx
je 0x40d2e9
mov ecx, esi
call fcn.0040de30
lea edi, [esi + 0x338]
push ebx
mov ecx, edi
call fcn.00401ff0
mov eax, dword [esi + 0x360]
mov ecx, edi
cmp eax, ebx
je 0x40d2e4
call fcn.004025f0
jmp 0x40d2e9
call fcn.00402640
mov ecx, dword [esi + 0x2c4]
push ecx
lea ecx, [esi + 0x2c8]
call fcn.00401f60
mov edx, dword [esi + 0x2c4]
lea ecx, [esi + 0x3a8]
push edx
call fcn.00401ff0
push ebx
lea ecx, [esi + 0x3e0]
call fcn.00401ff0
cmp dword [esi + 0x3d0], ebx
jne 0x40d336
cmp dword [esi + 0x408], ebx
jne 0x40d336
lea ecx, [esi + 0x370]
call fcn.00402640
jmp 0x40d341
lea ecx, [esi + 0x370]
call fcn.004025f0
push ebx
lea ecx, [esi + 0x418]
call fcn.00401ff0
mov eax, dword [esi + 0x440]
lea ecx, [esi + 0x450]
cmp eax, ebx
je 0x40d364
call fcn.004025f0
jmp 0x40d369
call fcn.00402640
lea edi, [esi + 0x4c0]
push ebx
mov ecx, edi
call fcn.00401ff0
mov eax, dword [esi + 0x4e8]
mov ecx, edi
cmp eax, ebx
je 0x40d38a
call fcn.004025f0
jmp 0x40d38f
call fcn.00402640
lea edi, [esi + 0x488]
push ebx
mov ecx, edi
call fcn.00401ff0
mov eax, dword [esi + 0x4b0]
mov ecx, edi
cmp eax, ebx
je 0x40d3b0
call fcn.004025f0
jmp 0x40d3b5
call fcn.00402640
lea eax, [esp + 0x1c]
push eax
call fcn.004126b0
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
jne 0x40d3cf
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]
mov dword [esp + 0x10], ebx
push ecx
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d41c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
mov ebp, eax
push str.SentinelDepartmentName
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d499
lea eax, [esp + 0x1c]
push eax
call fcn.004126b0
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
jne 0x40d436
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 + 0x30]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40d499
xor eax, eax
cmp ebp, ebx
je 0x40d46a
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x10]
cmp eax, ebx
mov ebp, edi
mov dword [esp + 0x18], ebp
jne 0x40d499
push str.NETINEL
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.NETINEL
push 1
push ebx
push str.SentinelDepartmentName
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esi + 0x2c8]
call fcn.00401a40
mov eax, dword [esi + 0x3d0]
pop edi
cmp eax, ebx
je 0x40d4ba
lea ecx, [esi + 0x3a8]
call fcn.00401a40
cmp dword [esi + 0x408], ebx
je 0x40d4cd
lea ecx, [esi + 0x3e0]
call fcn.00401a40
cmp dword [esi + 0x440], ebx
je 0x40d4e0
lea ecx, [esi + 0x418]
call fcn.00401a40
cmp dword [esi + 0x4b0], ebx
je 0x40d4f3
lea ecx, [esi + 0x488]
call fcn.00401a40
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40d51e
mov al, byte [ecx - 1]
cmp al, bl
je 0x40d514
cmp al, 0xff
je 0x40d514
dec al
mov byte [ecx - 1], al
jmp 0x40d51e
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x40d535
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x130]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret