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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x54]
mov esi, dword [esp + 0x68]
test eax, eax
push edi
mov dword [esp + 0x24], ebx
je 0x1000fb24
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], esi
mov eax, edi
mov dword [esp + 0x48], 1
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x40]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x64], edx
mov edx, dword [ebx + 0x6c]
push ecx
push 0
push 0x47c
push edx
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx + 0x54], eax
jmp 0x1000fb28
mov edi, dword [esp + 0x70]
mov eax, dword [ebx + 0x54]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x1000fb91
test byte [ebx + 0x40], 0x20
je 0x1000fb45
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x1000fb54
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
call ebp
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
test byte [ebx + 0x40], 0x20
je 0x1000fb82
mov ecx, dword [esp + 0x70]
push ecx
push esi
call ebp
jmp 0x1000fb91
mov edx, dword [esp + 0x70]
push edx
push esi
call ebp
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x14], 0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x7c]
cdq
sub eax, edx
mov edx, dword [edi]
sar ecx, 1
sar eax, 1
add ecx, eax
mov eax, dword [ebx + 0x88]
add ecx, edx
cdq
sub eax, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
mov eax, dword [ebx + 0x80]
cdq
sub eax, edx
mov edx, dword [edi + 4]
sar ecx, 1
sar eax, 1
add ecx, eax
mov eax, dword [ebx + 0x30]
add ecx, edx
test eax, eax
mov dword [esp + 0x70], ecx
jle 0x1000fd95
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jle 0x1000fd70
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
add eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x54]
add edx, ecx
test eax, eax
mov dword [esp + 0x38], edx
je 0x1000fc7f
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x6c]
push eax
mov dword [esp + 0x64], edx
mov edx, dword [ebx + 0x50]
push 0
push 0x47c
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], 2
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x54], eax
test eax, eax
jne 0x1000fd46
push 0xffffff
dec edx
push 1
push 0
mov dword [esp + 0x44], edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
call ebp
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
lea edi, [edx - 2]
push ecx
lea ebx, [eax + 2]
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x38]
push edi
lea eax, [edx - 2]
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
add eax, 2
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push 0x808080
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
call ebp
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x70]
lea eax, [edx + 2]
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push 0
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push esi
call ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov eax, dword [esp + 0x20]
push eax
push esi
call ebp
push eax
call edi
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call ebp
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x10]
add edi, ecx
mov ecx, dword [ebx + 0x2c]
inc eax
cmp eax, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x10], eax
jl 0x1000fc01
mov edx, dword [ebx + 0x80]
mov edi, dword [ebx + 0x78]
mov eax, dword [esp + 0x14]
add edx, edi
add ecx, edx
mov edx, dword [ebx + 0x30]
inc eax
mov dword [esp + 0x70], ecx
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x1000fbe6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8