Function at 0x402190
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40a7cd
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x410028]
xor eax, esp
mov dword [esp + 0xc68], eax
push ebx
push esi
push edi
mov eax, dword [0x410028]
xor eax, esp
push eax
lea eax, [esp + 0xc80]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.mfc100u.dll_CDialog::OnInitDialog]
mov eax, dword [edi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.mfc100u.dll_CMenu::FromHandle]
mov esi, eax
test esi, esi
je 0x402255
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x65
lea ecx, [esp + 0x14]
mov dword [esp + 0xc8c], 0
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
je 0x402240
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
push 0x10
push 0
push ecx
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc88], 0xffffffff
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [edi + 0xd8]
mov edx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push edx
call esi
mov eax, dword [edi + 0xd8]
push eax
mov eax, dword [edi + 0x20]
push 0
push 0x80
push eax
call esi
mov ecx, dword [edi + 0xfc]
push 0
push 0
push 0x1037
push ecx
call esi
mov edx, dword [edi + 0xfc]
or eax, 0x20
push eax
push 0
push 0x1036
push edx
call esi
mov ebx, dword [sym.imp.mfc100u.dll_CListCtrl::InsertColumn]
push 0xffffffffffffffff
push 0x64
push 0
push 0x40bfd0
push 0
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x32
push 0
push str.Type
push 1
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x50
push 0
push str.Size
push 2
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x3c
push 0
push 0x40c000
push 3
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x3c
push 0
push 0x40c00c
push 4
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x3c
push 0
push 0x40c018
push 5
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x50
push 0
push str.Version
push 6
lea ecx, [edi + 0xdc]
call ebx
push 0xffffffffffffffff
push 0x50
push 0
push 0x40c034
push 7
lea ecx, [edi + 0xdc]
call ebx
mov ecx, dword [edi + 0xc0]
mov eax, dword [edi + 0xbc]
cmp eax, ecx
je 0x402394
mov edx, dword [esp + 0x14]
push edx
mov ebx, ecx
call fcn.00401c50
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
mov eax, dword [edi + 0xc0]
push ecx
push eax
mov eax, esi
call fcn.00401c90
add esp, 8
mov dword [edi + 0xc0], esi
call dword [sym.imp.PDCLib.dll_GetInterfaces]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x402648
jmp 0x4023b2
xor ebx, ebx
lea edx, [esp + 0x274]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x78]
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.PDCLib.dll_GetInterfaceDeviceInfo]
lea eax, [esp + 0x7c]
push eax
push 0x40c03c
lea ecx, [esp + 0x484]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
mov eax, dword [edi + 0x428]
add esp, 0x18
lea edx, [esp + 0x474]
push edx
push ebx
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
mov dword [esp + 0xc88], 1
mov dword [esp + 0x34], eax
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x274]
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402457
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x278]
lea esi, [esp + 0x24]
call fcn.00407ae0
cmp dword [esp + 0x50], 8
jb 0x40248c
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor edx, edx
cmp dword [esp + 0x34], 8
mov esi, 7
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
jae 0x4024c5
mov eax, dword [esp + 0x30]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x4024cd
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov byte [esp + 0xc88], 1
xor ecx, ecx
lea eax, [esp + 0x74]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
lea edx, [eax + 2]
jmp 0x402500
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402500
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
lea esi, [esp + 0x24]
call fcn.00407ae0
cmp dword [esp + 0x6c], 8
jb 0x402532
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
cmp dword [esp + 0x34], 8
mov esi, 7
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], ax
jae 0x40256b
mov ecx, dword [esp + 0x30]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x402577
mov edx, dword [esp + 0x20]
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0xc88], 1
mov dword [esp + 0x6c], ecx
xor edx, edx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x3c]
lea ebx, [edi + 0xbc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], esi
mov word [esp + 0x20], dx
call fcn.00406450
push str.destruct_device_info
mov dword [esp + 0xc8c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x4025dc
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], 0
mov word [esp + 0x58], cx
cmp dword [esp + 0x50], esi
jb 0x402608
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jl 0x4023b0
cmp dword [esp + 0x14], 0
jle 0x402646
mov ecx, edi
mov dword [edi + 0x47c], 0
call fcn.00402dd0
xor ebx, ebx
mov esi, dword [sym.imp.mfc100u.dll_CWnd::EnableWindow]
push ebx
lea ecx, [edi + 0x1c4]
call esi
push ebx
lea ecx, [edi + 0x238]
call esi
push ebx
lea ecx, [edi + 0x2ac]
call esi
mov ecx, dword [edi + 0xb8]
push ecx
push 0x40c4dc
lea edx, [esp + 0x47c]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
lea eax, [esp + 0x474]
push eax
lea ecx, [edi + 0x394]
call dword [sym.imp.mfc100u.dll_CWnd::SetWindowTextW]
cmp dword [edi + 0x49c], ebx
jne 0x4026c4
mov eax, dword [edi + 0x4a0]
mov ecx, dword [edi + 0x20]
push ebx
push 0x1388
push eax
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x49c], eax
mov eax, 1
mov ecx, dword [esp + 0xc80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc68]
xor ecx, esp
call fcn.0040961c
mov esp, ebp
pop ebp
ret