Function at 0x4c52f0
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57ea68
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 0x4c5349
call fcn.004c6640
test eax, eax
je 0x4c535e
lea eax, [esp + 0x24]
push eax
push 4
push esi
push 0x4c5e10
push ebx
push ebx
call fcn.00543b7b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xa8], eax
je 0x4c5349
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 0x4c550f
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4c550f
cmp dword [esi + 0x40], ebx
jl 0x4c550f
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp dword [esi + 0x40], eax
jge 0x4c550f
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.0055fdcc
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x80], 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.0055fe83
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 [0x5899d8]
call fcn.005418dc
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 [0x5899d8]
call fcn.005418dc
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.0055feba
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.0055ff01
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 0x4c5349
mov ecx, dword [esi + 0x50]
cmp ecx, ebx
mov ecx, dword [eax]
jne 0x4c559a
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 0x4c5349
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 0x4c5711
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x4c5711
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 [0x5899d8]
push ecx
push ebp
call fcn.005418dc
sub edi, ebp
push eax
mov dword [esp + 0x40], edi
fild dword [esp + 0x40]
fmul qword [0x5899d8]
call fcn.005418dc
push eax
mov eax, dword [esi + 0x90]
push eax
mov eax, dword [esi + 0xb0]
push eax
call dword [ebx + 0x20]
jmp 0x4c581a
fld qword [0x589a58]
test edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x3ff00000
je 0x4c5737
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 0x4c574c
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 0x4c578b
fld qword [esp + 0x28]
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x40
jne 0x4c57af
fdiv qword [esp + 0x28]
fimul dword [esp + 0x1c]
call fcn.005418dc
mov dword [esp + 0x1c], eax
jmp 0x4c57b1
fcom qword [0x58a368]
fnstsw ax
test ah, 0x40
jne 0x4c57af
fld qword [esp + 0x28]
fdiv st(1)
fimul dword [esp + 0x18]
call fcn.005418dc
fstp st(0)
mov dword [esp + 0x18], eax
jmp 0x4c57b1
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 [0x5899d8]
call fcn.005418dc
push eax
mov eax, dword [esp + 0x38]
sub edi, eax
mov dword [esp + 0x44], edi
fild dword [esp + 0x44]
fmul qword [0x5899d8]
call fcn.005418dc
mov edx, dword [esi + 0x90]
push eax
mov eax, dword [esp + 0x44]
push edx
push ebp
call dword [eax + 0x20]
test eax, eax
jne 0x4c5349
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