Function at 0x100018d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [esp + 0x50]
mov esi, ecx
mov ebx, 1
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov ecx, esi
mov dword [esp + 0x10], 0x28
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], 0x18
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0xc], eax
call fcn.10001b10
mov ecx, esi
call fcn.10001b50
mov eax, dword [edi + 0x10]
cmp eax, ebx
jl 0x10001afd
jne 0x10001957
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov dword [eax + 0x24], 0x2710
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov dword [edx + 0x28], ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x58]
mov dword [esi + 8], ebx
cmp ebp, 0xffffffff
mov dword [esi + 0xc], edi
jne 0x100019a6
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0x48]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
mov ebp, eax
push edi
push ebx
mov dword [esp + 0x60], ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, 0xffffffff
jne 0x100019a6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, eax
mov dword [esp + 0x58], ebp
mov eax, ebp
xor edx, edx
mov dl, byte [esp + 0x5a]
and eax, 0xff
shl eax, 0x10
mov ecx, ebp
or edx, eax
mov eax, dword [esi + 0xc]
and ecx, 0xff00
or edx, ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x40], edx
mov edi, ecx
xor edx, edx
and edi, 0xff
mov dword [esp + 0x58], ecx
mov dl, byte [esp + 0x5a]
and ecx, 0xff00
shl edi, 0x10
or edx, edi
xor edi, edi
or edx, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov dword [esp + 0x58], edx
jle 0x10001a33
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx + 0x18]
test edx, edx
jl 0x10001a2a
mov ebx, dword [ecx + 0x28]
cmp edx, dword [eax + 0x14]
mov dword [esp + 0x54], edx
mov dword [esp + 0x10], ebx
je 0x10001a1e
cmp ebx, 2
lea eax, [esp + 0x58]
jne 0x10001a22
lea eax, [esp + 0x40]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0xc]
inc edi
cmp edi, dword [eax + 0x10]
jl 0x100019f8
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x54]
cmp ecx, dword [eax + 0x14]
je 0x10001a49
cmp dword [esp + 0x10], 2
je 0x10001a49
mov ebp, dword [eax + 0x18]
push ebp
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x44]
lea edx, [esi + 0x1c]
push 0
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 8]
mov dword [esi + 0x30], eax
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov edx, dword [esi + 0x30]
push eax
push edx
mov dword [esi + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push 0
lea eax, [esp + 0x50]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x44]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esi + 8]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esi + 4]
push edx
push 0
push esi
push 0x10001750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0x1c