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

Disassembly:
sub esp, 0x70
pushal
mov edx, eax
mov dword [esp + 0x28], edx
mov edi, ebx
mov ebx, ecx
cmp dword [edx + 4], 0
je 0x51322e
mov eax, dword [edx]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
call dword [ecx + 0x5c]
cmp eax, 0
je 0x512eff
mov esi, dword [0x5d5bd0]
jmp 0x512f04
mov eax, dword [edx]
mov esi, dword [eax + 0x7f]
lea ebp, [esp + 0x80]
mov dword [esp + 0x3c], ebp
push ebp
push esi
call sub.USER32.dll_GetClientRect
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x28]
sub ecx, dword [eax + 0x14]
mov dword [esp + 0x84], ecx
cmp dword [eax + 0xc], 0
jne 0x512f4d
lea ecx, [esp + 0x70]
push ecx
push ebp
call fcn.004f6a6c
push ebx
push ecx
push ecx
call sub.USER32.dll_IntersectRect
cmp eax, 0
je 0x51322e
cmp edi, 0
jne 0x512f5c
push esi
call sub.USER32.dll_GetDC
mov ebx, eax
jmp 0x512f5e
mov ebx, edi
mov eax, dword [0x595a6c]
call fcn.004f6380
mov ecx, eax
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x70]
mov dword [esp + 0x24], edx
push edx
push ebp
call fcn.004f6a6c
mov eax, dword [esp + 0x74]
add eax, dword [0x595f64]
mov dword [esp + 0x7c], eax
mov eax, dword [0x595f5c]
add dword [esp + 0x74], eax
push ecx
push edx
push ebx
call sub.USER32.dll_FillRect
mov ecx, dword [esp + 0x24]
push ecx
push ebp
call fcn.004f6a6c
mov eax, dword [esp + 0x7c]
sub eax, dword [0x595f5c]
mov dword [esp + 0x74], eax
push dword [esp + 0x2c]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov ecx, dword [esp + 0x24]
push ecx
push ebp
call fcn.004f6a6c
mov eax, dword [0x595f68]
mov dword [esp + 0x78], eax
mov eax, dword [0x595f64]
add dword [esp + 0x74], eax
mov eax, dword [0x595f5c]
sub dword [esp + 0x7c], eax
push dword [esp + 0x2c]
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 0x513059
mov ecx, dword [esp + 0x78]
mov eax, dword [eax + 4]
imul edx, edx, 0x14
add ecx, dword [eax + edx + 0xc]
mov dword [esp + 0x70], 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 0x51303e
mov eax, dword [esp + 0x70]
add eax, dword [0x595f68]
mov dword [esp + 0x78], eax
jmp 0x513049
mov eax, dword [esp + 0x88]
mov dword [esp + 0x78], eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ebx
call sub.USER32.dll_FillRect
jmp 0x512ff9
mov eax, dword [0x595a74]
call fcn.004f6380
mov dword [esp + 0x34], eax
mov eax, dword [0x595a70]
call fcn.004f6380
mov dword [esp + 0x38], eax
push dword [esp + 0x24]
push ebp
call fcn.004f6a6c
mov eax, dword [esp + 0x84]
add eax, dword [0x595f64]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
add eax, dword [0x595f58]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
sub eax, dword [0x595f58]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
add eax, dword [0x595f58]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x8c]
sub eax, dword [0x595f60]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
add eax, dword [0x595f58]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], 0
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 8]
cmp dword [esp + 0x30], eax
jge 0x5131c2
mov eax, dword [esp + 0x78]
add eax, dword [0x595f6c]
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
mov ebp, dword [esp + 0x30]
mov eax, ebp
imul eax, eax, 0x14
add edx, dword [ecx + eax + 0xc]
mov eax, dword [0x595f58]
sub edx, eax
mov dword [esp + 0x78], edx
push dword [esp + 0x34]
push dword [esp + 0x28]
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x70]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
add eax, dword [0x595f58]
mov dword [esp + 0x68], eax
push dword [esp + 0x34]
lea eax, [esp + 0x64]
push eax
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x78]
add eax, dword [0x595f58]
mov dword [esp + 0x58], eax
push dword [esp + 0x38]
lea eax, [esp + 0x54]
push eax
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
push dword [esp + 0x38]
lea eax, [esp + 0x44]
push eax
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x28]
mov ecx, ebp
call fcn.00513234
inc ebp
mov dword [esp + 0x30], ebp
jmp 0x5130f8
mov ecx, dword [esp + 0x24]
push ecx
push dword [esp + 0x40]
call fcn.004f6a6c
mov eax, dword [0x595f58]
add dword [esp + 0x74], eax
mov eax, dword [esp + 0x74]
add eax, dword [0x595f58]
mov dword [esp + 0x7c], eax
push dword [esp + 0x38]
push ecx
push ebx
call sub.USER32.dll_FillRect
mov eax, dword [esp + 0x84]
add eax, dword [0x595f58]
mov dword [esp + 0x8c], eax
mov eax, dword [0x595a64]
call fcn.004f6380
push eax
push dword [esp + 0x40]
push ebx
call sub.USER32.dll_FillRect
cmp edi, 0
jne 0x513227
push ebx
push esi
call sub.USER32.dll_ReleaseDC
mov dword [ebp + 0xc], 0
popal
add esp, 0x70
ret