Function at 0x508be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5687b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x20]
xor ebx, ebx
push ebx
push 0x5c9380
push 0x5c59c0
push ebx
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC71.DLL_CWnd::FromHandle
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov esi, eax
mov ecx, dword [esi + 0xe4]
add esp, 0x14
lea eax, [ebp + 0x8c]
push ecx
mov dword [esi + 0x118], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x508c56
call fcn.004894d0
test al, al
je 0x508c68
push ebx
lea ecx, [esi + 0xc4]
mov byte [esi + 0x120], bl
call sub.MFC71.DLL_CWnd::ShowWindow
mov eax, dword [ebp + 0x98]
mov cl, byte [eax + 0x39]
add eax, 0x38
cmp cl, bl
je 0x508cb2
cmp byte [eax + 2], bl
jne 0x508cb2
push 5
push 0x6e
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::ShowWindow
push ebx
push 0x6f
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::ShowWindow
mov edx, dword [ebp + 0x98]
movzx eax, byte [edx + 0x38]
mov dword [ebp + 0x90], eax
jmp 0x508cdf
push ebx
push 0x6e
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::ShowWindow
push 5
push 0x6f
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::ShowWindow
mov dword [ebp + 0x94], 2
push ebp
lea edi, [ebp + 0xa0]
push 0x66
mov ecx, edi
call sub.MFC71.DLL_CWnd::SubclassDlgItem
push ebp
lea esi, [ebp + 0x398]
push 0x67
mov ecx, esi
call sub.MFC71.DLL_CWnd::SubclassDlgItem
cmp edi, ebx
mov dword [ebp + 0x10c], esi
jne 0x508d0d
xor eax, eax
jmp 0x508d10
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0x3b8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push eax
push 0x469
push ecx
call esi
push eax
call sub.MFC71.DLL_CWnd::FromHandle
mov edx, dword [ebp + 0x98]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x40]
cmp ecx, ebx
je 0x508d9d
mov edx, dword [eax + 0x44]
sub edx, ecx
sar edx, 2
cmp edx, ebx
je 0x508d9d
cmp ecx, ebx
jne 0x508d50
xor eax, eax
jmp 0x508d58
mov eax, dword [eax + 0x44]
sub eax, ecx
sar eax, 2
cdq
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x6c]
cmp eax, ebx
mov dword [edi + 0x78], 1
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x84], edx
je 0x508d8c
mov ecx, dword [edi + 0x80]
mov edx, dword [edi + 0x78]
mov eax, dword [eax + 0x20]
push ecx
push edx
push 0x46f
push eax
call esi
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx + 0x20]
inc eax
push ebx
push eax
call fcn.004dbd60
mov edx, dword [ebp + 0x98]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x40]
cmp ecx, ebx
je 0x508dba
mov eax, dword [eax + 0x44]
sub eax, ecx
sar eax, 2
cmp eax, 2
jge 0x508dc7
cmp dword [edx + 0x20], ebx
jne 0x508dc7
push ebx
mov ecx, edi
call sub.MFC71.DLL_CWnd::EnableWindow
mov edx, dword [ebp + 0x98]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x40]
cmp ecx, ebx
je 0x508df1
mov eax, dword [eax + 0x44]
sub eax, ecx
sar eax, 2
cmp eax, ebx
je 0x508df1
cmp byte [edx + 0x24], bl
je 0x508df1
cmp byte [edx + 0x25], bl
jne 0x508df1
xor al, al
jmp 0x508df3
mov al, 1
push ebp
lea edi, [ebp + 0x138]
push 0x69
mov ecx, edi
mov byte [ebp + 0x110], al
call sub.MFC71.DLL_CWnd::SubclassDlgItem
push ebp
lea ecx, [ebp + 0x3f0]
push 0x6a
call sub.MFC71.DLL_CWnd::SubclassDlgItem
cmp edi, ebx
lea eax, [ebp + 0x3f0]
mov dword [ebp + 0x1a4], eax
jne 0x508e2b
xor eax, eax
jmp 0x508e2e
mov eax, dword [edi + 0x20]
mov edx, dword [ebp + 0x410]
push ebx
push eax
push 0x469
push edx
call esi
push eax
call sub.MFC71.DLL_CWnd::FromHandle
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x6c]
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 0x78], 1
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x84], ecx
je 0x508e84
mov ecx, dword [edi + 0x80]
mov edi, dword [edi + 0x78]
push ecx
mov ecx, dword [eax + 0x20]
push edi
push 0x46f
push ecx
call esi
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x58]
cmp byte [eax + 4], bl
je 0x508ea0
cmp byte [eax + 5], bl
jne 0x508ea0
mov eax, 1
jmp 0x508ea2
xor eax, eax
cmp al, bl
push ebp
sete al
lea edi, [ebp + 0x1d0]
push 0x6c
mov ecx, edi
mov byte [ebp + 0x1a8], al
call sub.MFC71.DLL_CWnd::SubclassDlgItem
push ebp
lea ecx, [ebp + 0x448]
push 0x6d
call sub.MFC71.DLL_CWnd::SubclassDlgItem
cmp edi, ebx
lea eax, [ebp + 0x448]
mov dword [ebp + 0x23c], eax
jne 0x508edf
xor eax, eax
jmp 0x508ee2
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0x468]
push ebx
push eax
push 0x469
push ecx
call esi
push eax
call sub.MFC71.DLL_CWnd::FromHandle
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x6c]
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x6c]
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 0x78], 1
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x84], ecx
je 0x508f38
mov ecx, dword [edi + 0x80]
mov edi, dword [edi + 0x78]
mov eax, dword [eax + 0x20]
push ecx
push edi
push 0x46f
push eax
call esi
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x5c]
cmp byte [eax + 4], bl
je 0x508f54
cmp byte [eax + 5], bl
jne 0x508f54
mov eax, 1
jmp 0x508f56
xor eax, eax
cmp al, bl
push ebp
sete al
lea edi, [ebp + 0x268]
push 0x71
mov ecx, edi
mov byte [ebp + 0x240], al
call sub.MFC71.DLL_CWnd::SubclassDlgItem
push ebp
lea ecx, [ebp + 0x4a0]
push 0x72
call sub.MFC71.DLL_CWnd::SubclassDlgItem
cmp edi, ebx
lea eax, [ebp + 0x4a0]
mov dword [ebp + 0x2d4], eax
jne 0x508f93
xor eax, eax
jmp 0x508f96
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0x4c0]
push ebx
push eax
push 0x469
push ecx
call esi
push eax
call sub.MFC71.DLL_CWnd::FromHandle
push str._I64d___
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
lea edx, [esp + 0x18]
push edx
lea ecx, [ebp + 0x2cc]
mov dword [esp + 0xa8], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [edi + 0x6c]
cmp eax, ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], 0x2d
mov dword [edi + 0x84], ebx
je 0x50901a
mov ecx, dword [edi + 0x80]
mov eax, dword [eax + 0x20]
push ecx
mov edi, ebx
push edi
push 0x46f
push eax
call esi
push 1
push 0x85
mov ecx, ebp
call fcn.00507530
push ebp
lea edi, [ebp + 0x550]
push 0x7a
mov ecx, edi
call sub.MFC71.DLL_CWnd::SubclassDlgItem
mov ecx, dword [edi + 0x20]
push 1
push ebx
push ecx
mov byte [edi + 0x58], bl
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebp
lea edi, [ebp + 0x300]
push 0x7d
mov ecx, edi
call sub.MFC71.DLL_CWnd::SubclassDlgItem
push ebp
lea ecx, [ebp + 0x4f8]
push 0x7e
call sub.MFC71.DLL_CWnd::SubclassDlgItem
cmp edi, ebx
lea eax, [ebp + 0x4f8]
mov dword [ebp + 0x36c], eax
jne 0x50907a
xor eax, eax
jmp 0x50907d
mov eax, dword [edi + 0x20]
mov edx, dword [ebp + 0x518]
push ebx
push eax
push 0x469
push edx
call esi
push eax
call sub.MFC71.DLL_CWnd::FromHandle
push str._0.01f___
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x364]
mov dword [esp + 0xa8], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
fld qword [0x594cd8]
fstp qword [edi + 0x78]
fld qword [0x57d230]
fstp qword [edi + 0x80]
mov edi, dword [edi + 0x6c]
cmp edi, ebx
je 0x509101
mov ecx, dword [edi + 0x20]
push 0x12c
push 1
push 0x46f
push ecx
call esi
push ebx
push 0x79
mov ecx, ebp
call fcn.00507530
push 0x75
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xa4], 2
mov edx, dword [ebp + 0x98]
mov ebx, dword [edx + 0x18]
lea eax, [esp + 0x28]
call fcn.00513df0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_9]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov byte [esp + 0xa4], 3
jbe 0x5091e1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + edi*4]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
push edx
push ebx
push 0x143
push ecx
call esi
mov edx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [edx + edi*4]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
push ebx
push 0x151
push ecx
call esi
mov eax, dword [ebp + 0x98]
mov cl, byte [eax + 0x40]
test cl, cl
je 0x5091d6
mov cl, byte [eax + 0x41]
test cl, cl
jne 0x5091d6
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x3c]
cmp dword [edx + edi*4], eax
jne 0x5091d6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
push 0
push ebx
push 0x14e
push ecx
call esi
mov eax, dword [esp + 0x1c]
inc edi
xor ebx, ebx
cmp edi, eax
jb 0x509163
call fcn.00513aa0
mov dword [ebp + 0x5bc], eax
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
xor edi, edi
cmp ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edi
jbe 0x509256
jmp 0x509210
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
xor edx, edx
cmp eax, ecx
je 0x50922b
jmp 0x509220
cmp edx, edi
je 0x5092a2
mov eax, dword [eax]
inc edx
cmp eax, ecx
jne 0x509220
xor edi, edi
mov edx, dword [edi + 4]
lea eax, [esp + 0x24]
lea ecx, [ebp + 0x5c8]
mov dword [esp + 0x24], edx
call fcn.0050a0e0
mov ecx, dword [esp + 0x20]
mov dword [eax], edi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x509208
push 0x76
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
push ebx
push ebx
mov edi, eax
mov eax, dword [edi + 0x20]
push 0x1037
push eax
call esi
mov ecx, dword [edi + 0x20]
or eax, 0x20
push eax
push ebx
push 0x1036
push ecx
call esi
push 0xff
push 1
push 0x10
lea ecx, [ebp + 0x5b4]
push 0x65
call sub.MFC71.DLL_CImageList::Create_1
lea eax, [ebp + 0x5b4]
cmp eax, ebx
jne 0x5092a7
xor eax, eax
jmp 0x5092aa
mov edi, dword [eax + 8]
jmp 0x50922d
mov eax, dword [eax + 4]
mov edx, dword [edi + 0x20]
push eax
push 2
push 0x1003
push edx
call esi
push eax
call sub.MFC71.DLL_CImageList::FromHandle
push 0x533e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x23
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
lea edx, [esp + 0x38]
push edx
xor ecx, ecx
mov dword [esp + 0x54], ecx
push ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 0x20]
push 0x101b
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer_1]
push 0x533c
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], 7
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 0x32
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
xor edx, edx
mov dword [esp + 0x74], edx
push 1
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], edx
mov ecx, dword [edi + 0x20]
push 0x101b
push ecx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer_1]
push 0x533d
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x78], 7
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0x81
mov eax, dword [edx - 0xc]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_2]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 1
mov dword [esp + 0x94], eax
push ecx
mov edx, dword [edi + 0x20]
push 2
push 0x101b
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer_1]
mov eax, dword [ebp + 0x98]
mov cl, byte [eax + 0x40]
test cl, cl
je 0x509487
mov cl, byte [eax + 0x41]
test cl, cl
jne 0x509487
cmp dword [eax + 0x3c], ebx
je 0x509487
push 0x38
call sub.MFC71.DLL_operator_new_1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x509471
mov eax, dword [ebp + 0x98]
mov eax, dword [eax + 0x44]
mov dword [esi], vtable.TextRenderer::CTemplate.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esp + 0xa4], 6
mov ecx, dword [eax + 0x24]
push eax
mov dword [esi + 0x24], ecx
call fcn.00505ee0
jmp 0x509473
xor esi, esi
mov byte [esp + 0xa4], 3
push ebp
mov dword [ebp + 0x5c0], esi
call fcn.00507650
push 1
push ebp
call fcn.00507cd0
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x70]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov eax, dword [esp + 0x14]
push eax
push 0x68
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::SetWindowTextA
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
call dword [edx + 0x74]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA_1]
mov eax, dword [esp + 0x14]
push eax
push 0x6b
mov ecx, ebp
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC71.DLL_CWnd::SetWindowTextA
push ebx
mov ecx, ebp
call sub.MFC71.DLL_CWnd::UpdateData
push ebp
call fcn.00492bf0
mov ecx, ebp
call sub.MFC71.DLL_CDialog::OnInitDialog
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x509515
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov ecx, dword [esp + 0x9c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret