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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x680490
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
xor ebx, ebx
push edi
cmp esi, ebx
mov edi, ecx
jg 0x4cde41
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
sub esi, eax
push ebx
push edi
lea ecx, [esp + 0x34]
call fcn.0042f890
mov eax, dword [edi + 0x17d4]
mov dword [esp + 0x78], ebx
cmp eax, 0xffffffff
je 0x4cde7c
push ebx
push eax
lea ecx, [esp + 0x88]
call fcn.0044a760
mov ecx, eax
call fcn.0044a810
test eax, eax
mov dword [esp + 0x18], 1
je 0x4cde80
mov dword [esp + 0x18], ebx
mov ebp, 4
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x14], ebp
call fcn.0042f9a0
lea edx, [edi + 0x6b8]
mov dword [esp + 0x24], eax
push edx
call fcn.0042e590
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
push eax
call fcn.0042f9c0
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], vtable.CTDCControlArray.0
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
mov byte [esp + 0x7c], 1
call fcn.004ce310
mov ecx, dword [esp + 0x84]
mov esi, eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, esi
push ecx
lea ecx, [esp + 0x38]
call fcn.00442140
cmp esi, ebx
mov byte [esp + 0x78], 2
jle 0x4ce1d8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + edx + 8]
lea ebx, [eax + edx]
push ecx
mov ecx, edi
call fcn.004cdcf0
mov esi, eax
mov eax, dword [ebx]
add eax, 0xfffffa68
cmp eax, 0x26
ja case.0x4cdf45.1436
xor edx, edx
mov dl, byte [eax + 0x4ce25c]
jmp dword [edx*4 + 0x4ce248]
mov edx, dword [edi + 0x16f4]
xor eax, eax
cmp edx, 0xc
jmp 0x4cdf88
mov edx, dword [edi + 0x16f8]
xor ecx, ecx
cmp edx, 0xc
sete cl
and esi, ecx
jmp case.0x4cdf45.1436
mov ecx, dword [edi + 0x16f4]
xor edx, edx
cmp ecx, 0xa
sete dl
and esi, edx
jmp case.0x4cdf45.1436
mov edx, dword [edi + 0x16f8]
xor eax, eax
cmp edx, 0xa
sete al
and esi, eax
test esi, esi
je 0x4ce0dc
mov eax, dword [esp + 0x80]
test eax, eax
jle 0x4cdfcb
mov edx, dword [esp + 0x24]
lea ecx, [eax + 0x4b]
cmp ecx, edx
jle 0x4cdfcb
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], 0
lea eax, [edx + ebp + 0xd]
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, dword [esp + 0x80]
mov ecx, ebp
lea edx, [eax + 0x4b]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x3c]
add ebp, 9
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebp
call fcn.0042fa70
mov eax, dword [ebx + 4]
test eax, eax
je 0x4ce02c
mov ecx, dword [esp + 0x84]
test ecx, ecx
jne 0x4ce02c
lea edx, [esp + 0x3c]
push 1
push edx
push eax
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetDlgItem
push eax
lea ecx, [esp + 0x40]
call fcn.004422e0
push 9
lea eax, [esp + 0x50]
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], eax
call fcn.0042fa70
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x4ce0ca
mov edx, dword [ebx]
mov ecx, edi
push edx
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ebp, eax
test ebp, ebp
je 0x4ce095
mov eax, dword [ebp + 0x20]
push eax
call fcn.0042ac10
add esp, 4
test eax, eax
je 0x4ce0b9
push 0xc8
call fcn.0040aa10
mov ecx, dword [esp + 0x4c]
add esp, 4
add ecx, eax
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x3c]
push 1
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.004422e0
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x10]
add ecx, 6
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x4ce1bc
mov eax, dword [ebx]
mov ebp, esi
cmp eax, 0x598
ja 0x4ce11a
je 0x4ce106
sub eax, 0x451
je 0x4ce14e
sub eax, 0x58
je 0x4ce14e
jmp 0x4ce121
mov ecx, dword [edi + 0x16f4]
xor edx, edx
cmp ecx, 0xc
sete dl
and edx, esi
mov ebp, edx
jmp 0x4ce14e
cmp eax, 0x599
je 0x4ce13c
mov eax, dword [edi + 0x16f0]
cmp eax, 0x68
je 0x4ce138
cmp eax, 0xffffffff
je 0x4ce138
mov eax, 1
jmp 0x4ce14a
xor eax, eax
jmp 0x4ce14a
mov edx, dword [edi + 0x16f8]
xor eax, eax
cmp edx, 0xc
sete al
and eax, esi
mov ebp, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4ce18d
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, esi
jne 0x4ce17a
mov eax, ebp
mov edx, dword [ebx + 4]
push eax
push edx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::EnableWindow
mov eax, dword [ebx]
mov ecx, edi
neg esi
sbb esi, esi
and esi, 5
push esi
push eax
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::ShowWindow
mov ecx, dword [ebx]
push ebp
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42u.DLL_CWnd::EnableWindow
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 0xc
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x4cdf18
xor ebx, ebx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
lea ebp, [edx + ebp + 0xd]
push ebp
call fcn.0042f980
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x78], 1
call fcn.00442190
mov dword [esp + 0x5c], vtable.CArray_struct_CTRLITEM__struct_CTRLITEM__.0
mov eax, dword [esp + 0x60]
mov byte [esp + 0x78], 3
cmp eax, ebx
je 0x4ce218
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], vtable.CObject.0
mov dword [esp + 0x78], 0xffffffff
call fcn.0042f8e0
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 8