Function at 0x10024730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1014f644]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], eax
cmp dword [eax + 0x13c], esi
jne 0x100247be
cmp dword [eax + 0x130], esi
jne 0x100247be
test byte [0x1015a8a4], 1
jne 0x1002478f
or dword [0x1015a8a4], 1
push 0x10103b50
mov dword [0x1015a8a8], esi
mov dword [0x1015a8ac], esi
mov dword [0x1015a8b0], esi
call fcn.10072866
add esp, 4
push str.sdkapp:_no_ad_return__in_order_to_quit
mov esi, 0x1015a8a8
call fcn.1003a3f0
mov edi, dword [esp + 0x10]
add esp, 4
call fcn.10024da0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.10074969
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
push esi
push 0x3e8
push ecx
push edx
call fcn.1007ac20
mov ebx, eax
movzx eax, word [esp + 0x28]
mov edi, edx
cdq
add ebx, eax
adc edi, edx
test byte [0x1015a8a4], 1
jne 0x1002482f
or dword [0x1015a8a4], 1
push 0x10103b50
mov dword [0x1015a8a8], esi
mov dword [0x1015a8ac], esi
mov dword [0x1015a8b0], esi
call fcn.10072866
add esp, 4
push edi
push ebx
push str.sdkapp:_task_schedule_base__d_ms_
mov esi, 0x1015a8a8
call fcn.1003a3f0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x12c]
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x20], eax
mov eax, esp
mov dword [eax], ebx
mov esi, edi
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x20]
push ecx
push eax
lea esi, [esp + 0x38]
call fcn.10026a50
mov edx, edi
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x138]
mov esi, dword [ecx]
add esp, 8
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
push ecx
push esi
mov dword [eax + 8], edi
lea esi, [esp + 0x38]
mov dword [eax + 0xc], edx
call fcn.10026ab0
add esp, 0x18
lea eax, [esp + 0x14]
lea ecx, [edi + 0x15c]
call fcn.1004a9c0
lea eax, [esp + 0x20]
lea edx, [edi + 0x15c]
call fcn.10025810
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 8]
je 0x1002499d
mov edi, edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100248dc
xor ecx, ecx
jmp 0x100248de
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov edx, edi
shr edx, 1
mov ebx, edi
mov eax, edx
and ebx, 1
mov dword [esp + 0x10], edx
cmp esi, eax
ja 0x100248f6
sub eax, esi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + ebx*8]
mov ecx, dword [esi + 0x140]
add esi, 0x130
test ecx, ecx
je 0x1002492a
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
cmp ecx, esi
setne al
movzx eax, al
push eax
call edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], 0
mov eax, 0x10024b70
mov dword [esi], 0x10134278
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], esi
test eax, eax
jne 0x1002494e
xor ecx, ecx
jmp 0x10024950
mov ecx, dword [eax]
mov eax, edx
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x1002495b
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov esi, dword [edx + ebx*8]
push 0
push 0
push esi
push 0x100221e0
push 0
push 0
call fcn.100767a7
mov edx, dword [esp + 0x24]
mov dword [esi + 0x12c], eax
add esp, 0x18
lea eax, [esp + 0x20]
add edx, 0x15c
inc edi
call fcn.10025810
cmp edi, dword [eax + 8]
jne 0x100248d0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4