Function at 0x4cf240
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58e658
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x8c], ebx
je 0x4cf299
call fcn.004d0590
test eax, eax
je 0x4cf2ae
lea eax, [esp + 0x24]
push eax
push 4
push esi
push 0x4cfd60
push ebx
push ebx
call fcn.00552c5b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xa8], eax
je 0x4cf299
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
cmp dword [esi + 0x3c], ebx
je 0x4cf45f
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4cf45f
cmp dword [esi + 0x40], ebx
jl 0x4cf45f
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp dword [esi + 0x40], eax
jge 0x4cf45f
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x90]
mov edi, eax
lea eax, [esp + 0x28]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi + 0x4c]
push edx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
mov eax, dword [esi + 0x90]
push ebx
push eax
call ebp
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
dec edx
inc eax
push edx
push eax
mov eax, dword [esi + 0x90]
inc ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x90]
push ecx
push edx
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebx
call edi
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
lea ecx, [esp + 0x48]
call fcn.0056eed4
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x80], 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.0056ef8b
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov edi, dword [esi + 0x64]
sub edx, ebx
add edx, edi
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul qword [0x599a38]
call fcn.005509ac
mov edi, eax
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
sub eax, edx
add eax, ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x599a38]
call fcn.005509ac
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x48]
neg ecx
sbb ecx, ecx
push 1
and ecx, ebp
push eax
push edi
push ecx
mov ecx, dword [ebx + 4]
push edx
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
lea ecx, [esp + 0x48]
call fcn.0056efc2
mov edx, dword [esi + 0x1c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call fcn.0056f009
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov eax, dword [esi + 0xb0]
cmp eax, ebx
je 0x4cf299
mov ecx, dword [esi + 0x50]
cmp ecx, ebx
mov ecx, dword [eax]
jne 0x4cf4ea
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
mov edi, ecx
mov eax, dword [esi + 0xb0]
neg edi
push edi
mov edi, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [esi + 0x68]
mov edx, dword [eax]
push ebx
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push ebx
push ebx
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x4cf299
mov edx, dword [esi + 0x1c]
push ebx
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0x9ec
push 0x58
push edi
call ebx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
mov ebp, eax
push 0x5a
push edi
mov dword [esp + 0x30], ebp
call ebx
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x64]
xor ebx, ebx
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x90]
mov edi, eax
lea eax, [esp + 0x38]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi + 0x4c]
push edx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
mov eax, dword [esi + 0x90]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
dec edx
inc eax
push edx
push eax
mov eax, dword [esi + 0x90]
inc ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x20]
push ecx
mov edx, dword [esi + 0x90]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebx
call edi
mov edi, dword [esi + 0x64]
cmp ebp, edi
mov dword [esp + 0x20], edi
jge 0x4cf661
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x4cf661
mov edx, dword [esi + 0xb0]
push 0
sub eax, ecx
mov ebx, dword [edx]
mov edx, dword [esp + 0x14]
neg edx
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
push edx
fild dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push edx
push 0
fmul qword [0x599a38]
push ecx
push ebp
call fcn.005509ac
sub edi, ebp
push eax
mov dword [esp + 0x40], edi
fild dword [esp + 0x40]
fmul qword [0x599a38]
call fcn.005509ac
push eax
mov eax, dword [esi + 0x90]
push eax
mov eax, dword [esi + 0xb0]
push eax
call dword [ebx + 0x20]
jmp 0x4cf76a
fld qword [0x599ab8]
test edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x3ff00000
je 0x4cf687
fild dword [esp + 0x24]
fidiv dword [esp + 0x20]
fstp qword [esp + 0x28]
mov ebx, dword [esi + 0x68]
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x4cf69c
fstp st(0)
fild dword [esp + 0x18]
fidiv dword [esp + 0x24]
fld qword [esp + 0x28]
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
fcomp st(1)
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fnstsw ax
test ah, 0x41
jne 0x4cf6db
fld qword [esp + 0x28]
fcomp qword [0x59a3c8]
fnstsw ax
test ah, 0x40
jne 0x4cf6ff
fdiv qword [esp + 0x28]
fimul dword [esp + 0x1c]
call fcn.005509ac
mov dword [esp + 0x1c], eax
jmp 0x4cf701
fcom qword [0x59a3c8]
fnstsw ax
test ah, 0x40
jne 0x4cf6ff
fld qword [esp + 0x28]
fdiv st(1)
fimul dword [esp + 0x18]
call fcn.005509ac
fstp st(0)
mov dword [esp + 0x18], eax
jmp 0x4cf701
fstp st(0)
mov eax, dword [esp + 0x10]
push 0
mov ecx, eax
mov ebp, dword [esi + 0xb0]
neg ecx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp]
mov ecx, dword [esp + 0x28]
sub ebx, eax
mov dword [esp + 0x34], ebx
push 0
fild dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x3c], edx
fmul qword [0x599a38]
call fcn.005509ac
push eax
mov eax, dword [esp + 0x38]
sub edi, eax
mov dword [esp + 0x44], edi
fild dword [esp + 0x44]
fmul qword [0x599a38]
call fcn.005509ac
mov edx, dword [esi + 0x90]
push eax
mov eax, dword [esp + 0x44]
push edx
push ebp
call dword [eax + 0x20]
test eax, eax
jne 0x4cf299
mov ecx, dword [esi + 0x1c]
push eax
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret