Function at 0x4418e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x24], ebx
je 0x441922
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x24]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x441933
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [edi + 4]
push 1
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipImageGetFrameDimensionsList]
cmp eax, ebx
je 0x44194d
mov dword [edi + 8], eax
mov edi, dword [esi + 0x7c]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.gdiplus.dll_GdipImageGetFrameCount]
cmp eax, ebx
je 0x44196c
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
cmp eax, 1
jbe 0x441ab4
mov dword [esi + 0x20], ebx
cmp byte [esi + 0x86], bl
je 0x441a96
mov edi, dword [esi + 0x7c]
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipImageSelectActiveFrame]
cmp eax, ebx
je 0x4419a3
mov dword [edi + 8], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x18], eax
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
je 0x441a7b
mov edi, dword [esi + 0x7c]
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push 0x5100
push edx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.gdiplus.dll_GdipGetPropertyItemSize]
cmp eax, ebx
je 0x4419e5
mov dword [edi + 8], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x441a7b
push 0xc
call fcn.004881ae
mov edi, eax
mov eax, dword [ebp - 0x18]
push ebx
mov dword [edi + 4], esi
mov dword [edi], eax
call fcn.00487e0b
mov ecx, dword [ebp - 0x1c]
add esp, 8
push eax
mov dword [edi + 8], eax
mov ebx, dword [esi + 0x7c]
mov edx, dword [ebx + 4]
push ecx
push 0x5100
push edx
call dword [sym.imp.gdiplus.dll_GdipGetPropertyItem]
test eax, eax
je 0x441a2d
mov dword [ebx + 8], eax
jmp 0x441a63
mov eax, dword [edi + 8]
cmp word [eax + 8], 4
jne 0x441a63
push 0
push 0
push edi
push 0x441ad0
push 0
push 0
call fcn.0048ae22
add esp, 0x18
mov dword [esi + 0x24], eax
test eax, eax
je 0x441a63
mov ecx, dword [ebp - 0x18]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x24], 0
jne 0x441a7b
mov edx, dword [edi + 8]
push edx
call fcn.00488a62
push edi
call fcn.00487ef3
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret
shr eax, 1
mov dword [esi + 0x20], eax
mov esi, dword [esi + 0x7c]
mov edx, dword [esi + 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.gdiplus.dll_GdipImageSelectActiveFrame]
cmp eax, ebx
je 0x441ab4
mov dword [esi + 8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487efe
mov esp, ebp
pop ebp
ret