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

Disassembly:
sub esp, 0x78
pushal
mov edx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ecx
cmp dword [edx + 4], 0
je 0x5300f2
mov eax, dword [edx]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
call dword [ecx + 0x5c]
cmp eax, 0
je 0x52fd93
mov esi, dword [0x567818]
jmp 0x52fd9b
mov eax, dword [edx]
mov esi, dword [eax + 0x83]
lea edi, [esp + 0x88]
mov dword [esp + 0x40], edi
push edi
push esi
call sub.USER32.dll_GetClientRect
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x28]
sub ecx, dword [eax + 0x14]
mov dword [esp + 0x8c], ecx
cmp dword [eax + 0xc], 0
jne 0x52fde7
lea ecx, [esp + 0x78]
push ecx
push edi
call fcn.0050f5f4
push dword [esp + 0x2c]
push ecx
push ecx
call sub.USER32.dll_IntersectRect
cmp eax, 0
je 0x5300f2
cmp ebx, 0
jne 0x52fdf6
push esi
call sub.USER32.dll_GetDC
mov ebx, eax
jmp 0x52fdf6
mov eax, dword [0x78d914]
call fcn.0050ea48
mov ecx, eax
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x24], edx
push edx
push edi
call fcn.0050f5f4
mov eax, dword [esp + 0x7c]
add eax, dword [0x78de58]
mov dword [esp + 0x84], eax
mov eax, dword [0x78de50]
add dword [esp + 0x7c], eax
push ecx
push edx
push ebx
call sub.USER32.dll_FillRect
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.0050f5f4
mov eax, dword [esp + 0x84]
sub eax, dword [0x78de50]
mov dword [esp + 0x7c], eax
push dword [esp + 0x30]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov ecx, dword [esp + 0x24]
push ecx
push edi
call fcn.0050f5f4
mov eax, dword [0x78de5c]
mov dword [esp + 0x80], eax
mov eax, dword [0x78de58]
add dword [esp + 0x7c], eax
mov eax, dword [0x78de50]
sub dword [esp + 0x84], eax
push dword [esp + 0x30]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x52ff06
mov ecx, dword [esp + 0x80]
mov eax, dword [eax + 4]
imul edx, edx, 0x14
add ecx, dword [eax + edx + 0xc]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
cmp eax, ecx
je 0x52fee8
mov eax, dword [esp + 0x78]
add eax, dword [0x78de5c]
mov dword [esp + 0x80], eax
jmp 0x52fef6
mov eax, dword [esp + 0x90]
mov dword [esp + 0x80], eax
push dword [esp + 0x30]
push dword [esp + 0x28]
push ebx
call sub.USER32.dll_FillRect
jmp 0x52fe9d
mov eax, dword [0x78d91c]
call fcn.0050ea48
mov dword [esp + 0x38], eax
mov eax, dword [0x78d918]
call fcn.0050ea48
mov dword [esp + 0x3c], eax
push dword [esp + 0x24]
push edi
call fcn.0050f5f4
mov eax, dword [esp + 0x8c]
add eax, dword [0x78de58]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x7c]
add eax, dword [0x78d9a0]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x88]
sub eax, dword [0x78d9a0]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x7c]
add eax, dword [0x78d9a0]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x94]
sub eax, dword [0x78de54]
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
add eax, dword [0x78d9a0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 8]
cmp dword [esp + 0x34], eax
jge 0x530081
mov eax, dword [esp + 0x80]
add eax, dword [0x78de60]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x78]
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x34]
mov eax, edi
imul eax, eax, 0x14
add edx, dword [ecx + eax + 0xc]
mov eax, dword [0x78d9a0]
sub edx, eax
mov dword [esp + 0x80], edx
push dword [esp + 0x38]
push dword [esp + 0x28]
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
add eax, dword [0x78d9a0]
mov dword [esp + 0x70], eax
push dword [esp + 0x38]
lea eax, [esp + 0x6c]
push eax
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
add eax, dword [0x78d9a0]
mov dword [esp + 0x60], eax
push dword [esp + 0x3c]
lea eax, [esp + 0x5c]
push eax
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
push dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x28]
mov ecx, edi
call fcn.005300f8
inc edi
mov dword [esp + 0x34], edi
jmp 0x52ffab
mov ecx, dword [esp + 0x24]
push ecx
push dword [esp + 0x44]
call fcn.0050f5f4
mov eax, dword [0x78d9a0]
add dword [esp + 0x7c], eax
mov eax, dword [esp + 0x7c]
add eax, dword [0x78d9a0]
mov dword [esp + 0x84], eax
push dword [esp + 0x3c]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x8c]
add eax, dword [0x78d9a0]
mov dword [esp + 0x94], eax
mov eax, dword [0x78d90c]
call fcn.0050ea48
push eax
push dword [esp + 0x44]
push ebx
call sub.USER32.dll_FillRect
cmp dword [esp + 0x44], 0
jne 0x5300eb
push ebx
push esi
call sub.USER32.dll_ReleaseDC
mov dword [edi + 0xc], 0
popal
add esp, 0x78
ret