Function at 0x4e25b0
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x587078
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 + 0x90], ebx
je 0x4e260a
call fcn.004e3900
test eax, eax
je 0x4e261f
lea eax, [esp + 0x24]
push eax
push 4
push esi
push 0x4e30d0
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xac], eax
je 0x4e260a
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 + 0x40], ebx
je 0x4e27d0
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x4e27d0
cmp dword [esi + 0x44], ebx
jl 0x4e27d0
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp dword [esi + 0x44], eax
jge 0x4e27d0
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
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 + 0x94]
mov edi, eax
lea eax, [esp + 0x28]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi + 0x50]
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 + 0x94]
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 + 0x94]
inc ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x94]
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 + 0x44]
mov ecx, dword [esi + 0x48]
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.00572d84
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x80], 0
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov edi, dword [esi + 0x68]
sub edx, ebx
add edx, edi
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [esi + 0x6c]
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 [0x593668]
call sub.MSVCRT.dll__ftol
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
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 sub.MFC42.DLL_CDC::Detach
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x48]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
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 + 0xb4]
cmp eax, ebx
je 0x4e260a
mov ecx, dword [esi + 0x54]
cmp ecx, ebx
mov ecx, dword [eax]
jne 0x4e285b
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb4]
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 + 0xb4]
neg edi
push edi
mov edi, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax]
push ebx
push ecx
mov ecx, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x94]
push ebx
push ebx
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x4e260a
mov edx, dword [esi + 0x20]
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 + 0xb4]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi + 0x20]
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 + 0x70]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x68]
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 + 0x94]
mov edi, eax
lea eax, [esp + 0x38]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esi + 0x50]
push edx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
mov eax, dword [esi + 0x94]
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 + 0x94]
inc ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x20]
push ecx
mov edx, dword [esi + 0x94]
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 + 0x68]
cmp ebp, edi
mov dword [esp + 0x20], edi
jge 0x4e29d2
mov eax, dword [esi + 0x6c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x4e29d2
mov edx, dword [esi + 0xb4]
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 [0x593668]
push ecx
push ebp
call sub.MSVCRT.dll__ftol
sub edi, ebp
push eax
mov dword [esp + 0x40], edi
fild dword [esp + 0x40]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [esi + 0x94]
push eax
mov eax, dword [esi + 0xb4]
push eax
call dword [ebx + 0x20]
jmp 0x4e2adb
fld qword [0x593700]
test edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x3ff00000
je 0x4e29f8
fild dword [esp + 0x24]
fidiv dword [esp + 0x20]
fstp qword [esp + 0x28]
mov ebx, dword [esi + 0x6c]
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x4e2a0d
fstp st(0)
fild dword [esp + 0x18]
fidiv dword [esp + 0x24]
fld qword [esp + 0x28]
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
fcomp st(1)
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fnstsw ax
test ah, 0x41
jne 0x4e2a4c
fld qword [esp + 0x28]
fcomp qword [0x594300]
fnstsw ax
test ah, 0x40
jne 0x4e2a70
fdiv qword [esp + 0x28]
fimul dword [esp + 0x1c]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x1c], eax
jmp 0x4e2a72
fcom qword [0x594300]
fnstsw ax
test ah, 0x40
jne 0x4e2a70
fld qword [esp + 0x28]
fdiv st(1)
fimul dword [esp + 0x18]
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [esp + 0x18], eax
jmp 0x4e2a72
fstp st(0)
mov eax, dword [esp + 0x10]
push 0
mov ecx, eax
mov ebp, dword [esi + 0xb4]
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 [0x593668]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [esp + 0x38]
sub edi, eax
mov dword [esp + 0x44], edi
fild dword [esp + 0x44]
fmul qword [0x593668]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 0x94]
push eax
mov eax, dword [esp + 0x44]
push edx
push ebp
call dword [eax + 0x20]
test eax, eax
jne 0x4e260a
mov ecx, dword [esi + 0x20]
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