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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
call sub.MFC71.DLL_CWnd::Default
mov ebx, dword [esp + 0x48]
mov edx, dword [edi + 0x74]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [edi + 0x78]
mov eax, ebx
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x44], 1
jne 0x401e00
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0x88]
xor eax, eax
cmp ecx, eax
push esi
mov dword [esp + 0x20], eax
jle 0x401fa6
mov dword [esp + 0x24], eax
lea esp, [esp]
mov ecx, dword [edi + 0x84]
mov esi, dword [eax + ecx + 8]
mov edx, dword [eax + ecx + 4]
add eax, ecx
test esi, esi
mov ecx, dword [eax]
mov dword [esp + 0x28], edx
jl 0x401f7c
cmp esi, 0x64
jg 0x401f7c
push ecx
mov ecx, edi
call sub.MFC71.DLL_CWnd::GetDlgItem
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
je 0x401f7c
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401f7c
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call sub.MFC71.DLL_CWnd::ScreenToClient
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
sub eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
sub eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
cmp eax, 5
mov ecx, ebx
mov edi, ebp
ja case.default.0x401eb7
jmp dword [eax*4 + 0x401ffc]
imul esi, dword [esp + 0x10]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, ebx
jmp case.default.0x401eb7
mov ecx, esi
imul ecx, dword [esp + 0x10]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, ebx
imul esi, dword [esp + 0x14]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, ebp
jmp case.default.0x401eb7
imul esi, dword [esp + 0x10]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x1c], eax
jmp case.default.0x401eb7
mov edx, esi
imul edx, dword [esp + 0x10]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x1c], eax
imul esi, dword [esp + 0x14]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 1
push edx
push eax
push edi
push ecx
mov ecx, dword [esp + 0x40]
call sub.MFC71.DLL_CWnd::MoveWindow
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x88]
inc ecx
add eax, 0xc
cmp ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jl 0x401e20
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
lea esi, [edi + 0x90]
test esi, esi
jne 0x401fb4
xor eax, eax
jmp 0x401fb7
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401fe3
mov eax, dword [edi + 0xf4]
mov ecx, dword [edi + 0xf0]
push 1
push eax
push ecx
mov edx, ebp
sub edx, eax
mov eax, ebx
sub eax, ecx
push edx
push eax
mov ecx, esi
call sub.MFC71.DLL_CWnd::MoveWindow
cmp dword [esp + 0x48], 1
pop esi
je 0x401ff1
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebp
pop edi
pop ebp
pop ebx
add esp, 0x34
ret 0xc