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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor eax, eax
cmp dword [esi], 0xffffffff
push edi
sete al
test eax, eax
je 0x4571da
mov eax, 0x7f
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jmp 0x4571f1
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x20]
lea eax, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x74]
test al, 0x20
je 0x457292
mov eax, dword [esi + 0x70]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
push ecx
call edi
push 5
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [esi + 4]
push eax
push edx
call edi
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
add edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esi + 4]
push ebp
push ecx
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push edx
push eax
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
test al, 0x10
je 0x457525
test al, 2
je 0x457525
mov edx, dword [esp + 0x10]
add edx, 0x78
cmp edx, 0xff
jle 0x4572b6
mov edx, 0xff
mov ecx, dword [esp + 0x14]
add ecx, 0x78
cmp ecx, 0xff
jle 0x4572ca
mov ecx, 0xff
mov eax, dword [esp + 0x18]
add eax, 0x78
cmp eax, 0xff
jle 0x4572dd
mov eax, 0xff
xor ebx, ebx
mov bh, al
mov bl, cl
movzx ecx, dl
shl ebx, 8
or ebx, ecx
push ebx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, dword [esp + 0x30]
mov edx, dword [esi + 4]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edx
mov dword [esp + 0x40], eax
call ebp
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
push 0
mov dword [esp + 0x34], eax
lea edx, [ecx + ebx - 1]
lea eax, [edi + 1]
push edx
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 4]
lea eax, [ebx + 1]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esi + 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
add eax, edi
push eax
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add ecx, 0xffffff88
xor eax, eax
test ecx, ecx
setl al
add edx, 0xffffff88
sub eax, 1
and eax, ecx
xor ecx, ecx
test edx, edx
setl cl
sub ecx, 1
and ecx, edx
mov edx, dword [esp + 0x18]
add edx, 0xffffff88
mov dword [esp + 0x30], ecx
xor ecx, ecx
test edx, edx
setl cl
sub ecx, 1
and ecx, edx
xor edx, edx
mov dh, cl
mov dl, byte [esp + 0x30]
shl edx, 8
movzx eax, al
or edx, eax
push edx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [esp + 0x40], eax
call ebp
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push 0
mov dword [esp + 0x34], eax
push ebx
lea eax, [edx + edi - 1]
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
lea eax, [edx + ebx - 1]
push eax
mov eax, dword [esi + 4]
lea edx, [ecx + edi - 1]
push edx
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
lea edx, [ecx + ebx - 1]
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add ecx, 0xffffffc4
xor eax, eax
test ecx, ecx
setl al
add edx, 0xffffffc4
sub eax, 1
and eax, ecx
xor ecx, ecx
test edx, edx
setl cl
movzx eax, al
sub ecx, 1
and ecx, edx
mov edx, dword [esp + 0x18]
add edx, 0xffffffc4
mov dword [esp + 0x30], ecx
xor ecx, ecx
test edx, edx
setl cl
sub ecx, 1
and ecx, edx
xor edx, edx
mov dh, cl
mov dl, byte [esp + 0x30]
shl edx, 8
or edx, eax
push edx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 4]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], eax
push 0
lea eax, [ebx + 1]
push eax
lea eax, [edx + edi - 2]
push eax
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
lea eax, [edx + ebx - 2]
push eax
mov eax, dword [esi + 4]
lea edx, [ecx + edi - 2]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
push edx
push eax
call edi
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ebx - 2]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14