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

Disassembly:
sub esp, 0x48
lea eax, [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
push ebp
mov edi, ecx
push eax
call fcn.0064e6a0
mov esi, dword [esp + 0x74]
mov edx, dword [eax]
mov ecx, esi
push esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x64e279
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x5c]
test eax, eax
jne 0x64dfa2
mov ecx, dword [edi + 0xb4]
and ecx, 1
cmp cl, 1
jne 0x64df87
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
mov dword [esi], eax
jmp 0x64df91
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CDC::FillSolidRect_1
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
xor eax, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [edi + 4]
mov ebp, eax
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x7631f8]
lea ecx, [esp + 0x34]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x74], eax
je 0x64e193
mov edx, dword [0x7631f8]
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
push ebp
push edx
mov ecx, edi
call dword [eax + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x74], eax
je 0x64e193
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x64]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0064e400
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
je 0x64e063
push ecx
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CDC::FillSolidRect_1
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x38]
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CDC::SetBkMode
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x7631cc]
lea ecx, [esp + 0x34]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x64e170
mov edx, dword [0x7631cc]
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
push ebp
push edx
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
jne 0x64e170
mov eax, dword [esi]
mov dword [esp + 0x74], 0
mov dword [esi + 8], eax
mov eax, dword [edi + 0xcc]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x64e170
mov ecx, dword [edi + 0xc8]
mov edx, dword [esp + 0x74]
mov ecx, dword [ecx + edx*4]
mov eax, dword [ecx]
mov dword [esp + 0x40], eax
mov edx, dword [ecx + 0x18]
mov eax, dword [esi + 8]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x70]
mov dword [esi], eax
cmp eax, dword [edx + 8]
jg 0x64e170
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x64e15b
add eax, ecx
mov ecx, ebx
mov dword [esi + 8], eax
mov eax, dword [ebx]
call dword [eax + 0x24]
mov ecx, dword [edi + 4]
mov dword [esp + 0x6c], eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0x7631c8]
lea edx, [esp + 0x34]
push edx
push ebp
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x64e14f
mov ecx, dword [0x7631c8]
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
push ebp
push ecx
mov ecx, edi
call dword [edx + 0x10]
mov eax, dword [esp + 0x6c]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x74], eax
jl 0x64e0da
mov eax, dword [esp + 0x70]
push 0
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
push eax
push esi
push ecx
push ebx
mov ecx, edi
mov dword [esi + 8], edx
call fcn.0064e290
mov eax, dword [esp + 0x78]
test eax, eax
je 0x64e279
mov edx, dword [esp + 0x60]
mov ecx, edi
push edx
mov dword [esp + 0x7c], 1
call fcn.0064e790
mov ebp, eax
test ebp, ebp
je 0x64e213
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x24]
push 1
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x6c]
inc eax
push edx
push eax
push ecx
push ebp
push ebx
mov ecx, edi
call fcn.0064df20
push ebp
mov ecx, edi
call fcn.0064e3b0
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x24]
push edx
inc ecx
push esi
push esi
mov ebp, eax
mov dword [esp + 0x84], ecx
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0x70]
mov ecx, dword [esi + 0xc]
cmp ecx, dword [eax + 0xc]
jge 0x64e217
test ebp, ebp
jne 0x64e1b9
jmp 0x64e217
mov eax, dword [esp + 0x70]
mov edx, esi
test ebp, ebp
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], edx
jne 0x64e25e
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
push 1
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
push ebx
mov ecx, edi
call fcn.0064e290
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x20