Function at 0x4034e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4124a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push edi
mov edi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x40], 2
call fcn.0040ff00
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push 0x41b038
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ae1
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push esi
push ecx
push eax
push eax
push eax
push 0x41b238
push edx
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4035ae
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
push 0x41b238
push edx
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [edi + 0xa0]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call esi
test eax, eax
je 0x4035d0
mov edx, dword [edi + 0x80]
lea ecx, [edi + 0x80]
call dword [edx + 0x60]
mov eax, dword [edi + 0x11c]
push eax
call esi
test eax, eax
je 0x4035ec
mov edx, dword [edi + 0xfc]
lea ecx, [edi + 0xfc]
call dword [edx + 0x60]
push 0x3ed
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x403693
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0x41b228
push edx
mov dword [esp + 0x2c], 8
call ebp
movzx ax, byte [esp + 0x24]
movzx cx, byte [esp + 0x25]
movzx dx, byte [esp + 0x26]
add eax, 0x7b2
inc ecx
mov word [esp + 0x36], cx
push 0x100
push 0x100
lea ecx, [esp + 0x18]
mov word [esp + 0x3c], ax
mov word [esp + 0x42], dx
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x3c]
push 0
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push 0x3f1
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x403709
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0x41b218
push ecx
mov dword [esp + 0x2c], 4
call ebp
mov ebx, dword [esp + 0x20]
push 0
push 0x14
push 0x14
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x20]
push eax
push ebx
push edx
call fcn.00402e70
add esp, 0x14
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push 0x3fa
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x403765
push 0x80
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x80
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
push 0x41b210
push edx
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x403765
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x3f0
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebx, eax
test ebx, ebx
je 0x4037d0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x41b1fc
push edx
mov dword [esp + 0x2c], 4
call ebp
mov esi, dword [esp + 0x20]
push 0x14
push 0x14
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.00403100
add esp, 0x10
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x405
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x403804
push 1
push 7
lea edx, [esp + 0x18]
push 0x41b1f4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esp + 0x2c]
mov esi, 4
cmp eax, esi
je 0x4039fa
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
push 0x41b1e8
push 0x41b1d4
push 0x41b038
lea ecx, [esp + 0x38]
push 0x41b1c8
push ecx
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x40]
add esp, 0x14
lea edx, [esp + 0x24]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4038f2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esp + 0x34]
push 0x41b1b4
push eax
mov dword [esp + 0x2c], esi
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0xfc]
mov eax, ecx
push 1
dec eax
lea esi, [edi + 0xfc]
neg eax
sbb eax, eax
xor ebx, ebx
and al, 0x74
add eax, 0x8b
cmp ecx, 1
push eax
push 0x1f40
push edi
push 0x3fd
push 0x50000000
mov ecx, esi
sete bl
call dword [edx + 0xe4]
mov eax, dword [esi]
push 1
push 0
mov ecx, esi
call dword [eax + 0xd8]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0xd0]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 4
push 0x41b1a4
push 0x41b038
lea ecx, [esp + 0x34]
push 0x41b030
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0x24]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4039b5
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esp + 0x34]
push 0x41b190
push eax
mov dword [esp + 0x2c], esi
call ebp
mov ecx, dword [esp + 0x18]
push 1
mov eax, ecx
lea esi, [edi + 0x80]
dec eax
neg eax
sbb eax, eax
xor edx, edx
and al, 0x74
add eax, 0x8b
cmp ecx, 1
sete dl
push eax
push 0x1f41
mov ebp, edx
mov edx, dword [esi]
push edi
push 0x801c
push 0x50000000
mov ecx, esi
call dword [edx + 0xe4]
mov eax, dword [esi]
push 1
push 0
mov ecx, esi
call dword [eax + 0xd8]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0xd0]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3fd
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x4039e7
mov ecx, edi
call fcn.00403d00
cmp eax, 2
jne 0x4039d5
xor eax, eax
mov ecx, dword [esi + 0x20]
push 0
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 2
call fcn.00411236
jmp 0x403acc
push 0x3fd
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x403a13
push 0
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0x408
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x403a2c
push 0
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0x3fa
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x403a45
push 0
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0x409
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x403a5e
push 5
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0x40a
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x403acc
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push 0x80
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x80
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x41b184
push eax
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x403acc
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, edi
call fcn.00403f70
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.00411236
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 0
call fcn.00411236
lea ecx, [esp + 4]
mov dword [esp + 0x40], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x38]
pop edi
mov dword fs:[0], ecx
add esp, 0x40
ret