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

Disassembly:
sub esp, 0xc4
mov eax, dword [esp + 0xc8]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_IntersectClipRect]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0xe0]
push eax
push ecx
push edx
call ebp
mov eax, dword [esi + 4]
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0xd8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x60
lea edx, [esp + 0x68]
push ebx
push edx
call fcn.0049e9f0
mov eax, dword [esi + 4]
add esp, 0xc
push eax
mov dword [esp + 0x64], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, esi
mov dword [esp + 0x6c], 0xfffffff4
mov dword [esp + 0x74], eax
mov dword [esp + 0x8c], ebx
call fcn.004728e0
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x70], 1
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x60]
push ecx
push edx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], eax
and eax, 4
mov dword [esp + 0x5c], eax
jne 0x473d96
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00427b10
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x473da9
and eax, 0x20
cmp al, 0x20
jne 0x4740b0
mov eax, edi
and eax, 1
cmp al, 1
sete al
mov ecx, edi
and ecx, 0x40
cmp cl, 0x40
sete byte [esp + 0x12]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x13], al
cmp al, bl
je 0x473e26
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [esp + 0xd8]
push eax
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x50]
push ecx
mov ecx, dword [esp + 0xe0]
push edx
push eax
push ecx
call ebp
mov eax, dword [esi + 0xa8]
mov ecx, dword [esp + 0xd8]
lea edx, [esp + 0x4c]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [esi + 0x34]
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x58], ecx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
cmp ecx, ebx
jbe 0x473f5a
cmp ebp, dword [esi + 0x24]
je 0x473f4d
cmp ebp, dword [esi + 0x34]
jae 0x473f72
mov edx, dword [esi + 0x30]
mov edi, dword [edx + ebp*4]
cmp edi, ebx
je 0x473f4d
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0xa8]
push ebx
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0xdc]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x473f4d
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebx
cmp byte [esp + 0x12], bl
je 0x473f09
cmp dword [esi + 0x28], ebp
jne 0x473f09
mov dword [esp + 0x88], 0x40
cmp byte [edi + 0x20], bl
je 0x473f19
or dword [esp + 0x88], 0x80
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.00472470
mov ecx, dword [esp + 0x58]
inc ebp
cmp ebp, ecx
jb 0x473e55
mov eax, dword [esi + 0x24]
cmp eax, ebx
jl 0x474069
cmp eax, ecx
jae 0x474069
cmp eax, dword [esi + 0x34]
jb 0x473f7c
push 0x80070057
call fcn.00401000
mov edx, dword [esi + 0x30]
mov edi, dword [edx + eax*4]
cmp edi, ebx
je 0x474069
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0xa8]
push ebx
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0xdc]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x474069
mov eax, dword [esi + 0x24]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 1
cmp byte [esp + 0x12], bl
je 0x474025
cmp dword [esi + 0x28], eax
jne 0x474025
mov dword [esp + 0x88], 0x41
cmp byte [edi + 0x20], bl
je 0x474035
or dword [esp + 0x88], 0x80
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x88], edx
call fcn.00472470
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
cmp byte [esp + 0x13], bl
je 0x4740b0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xd8]
push ebx
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0xd8]
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x5c], 4
je 0x4740e3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00473530
mov eax, dword [esp + 0x24]
and eax, 0x10
cmp al, 0x10
jne 0x474147
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x70], 2
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x60]
push ecx
push edx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xd8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret 8