Function at 0x10241b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xdc]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xf888]
and eax, 0xf00
cmp eax, 0x100
jbe 0x10241bea
test dword [ecx + 0x162c], 0x8100
je 0x102422ef
mov ecx, dword [ebp + 8]
test byte [ecx + 0x93], 2
je 0x102422ef
cmp byte [0x11d0c748], 0
jne 0x102422ef
jmp 0x10241bed
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x114]
xor esi, esi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x10241c3a
lea ebx, [edi + 0xa8]
cmp esi, 6
jae 0x10241c34
lea ecx, [esi + eax*4]
add ecx, eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + 0xf7c]
mov ecx, dword [eax + ecx*4 + 0xd64]
mov dword [ebx], ecx
call fcn.1009c500
mov eax, dword [esp + 0x18]
inc esi
add ebx, 4
cmp esi, dword [ebp + 0xc]
jb 0x10241c03
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20c]
test eax, eax
je 0x10241c4f
mov eax, dword [eax + 0x5c]
shr eax, 8
and eax, 3
jmp 0x10241c51
xor eax, eax
neg eax
sbb eax, eax
and eax, 4
mov dword [edi + 0x214], eax
cmp ebx, 6
jae 0x10241c85
lea ecx, [edi + 0xa8]
mov esi, 6
lea ecx, [ecx + ebx*4]
sub esi, ebx
lea edx, [edi + 0x20]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x10241c76
mov eax, dword [edi + 0x214]
lea ecx, [eax*4 + 0x20c]
mov eax, dword [edi + 0xa8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18c]
mov dword [edi + 0xc0], eax
mov eax, dword [edi + 0xac]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18c]
mov dword [edi + 0xc4], eax
mov eax, dword [edi + 0xb0]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18c]
mov dword [edi + 0xc8], eax
mov eax, dword [edi + 0xb4]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18c]
mov dword [edi + 0xcc], eax
mov eax, dword [edi + 0xb8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18c]
mov dword [edi + 0xd0], eax
mov eax, dword [edi + 0xbc]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x18c]
mov dword [edi + 0xd4], eax
mov dword [edi + 0x1c], ebx
mov ebx, dword [edi + 0xdc]
mov byte [edi + 4], 1
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 2
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
mov dword [edi + 0x40], 3
mov dword [edi + 0x18], 0
mov dword [edi + 0x120], 0
mov eax, dword [ebx + 0x12e4]
cmp eax, 0xffffffff
jne 0x10241d6b
mov eax, dword [ebx + 0x1338]
cmp eax, 0xffffffff
jne 0x10241d6b
xor ebx, ebx
jmp 0x10241d72
mov ebx, dword [ebx + eax*4 + 0x11dc]
mov ebx, dword [ebx + 0x5e0]
test byte [ebx + 0xdb8], 2
lea esi, [ebx + 0xd60]
jne 0x10241d9a
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x10241e0f
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x48]
mov ecx, dword [esi + 0x2c]
add eax, 1
mov dword [esi + 0x28], eax
adc ecx, 0
mov dword [esp + 0x10], edx
mov dword [esi + 0x2c], ecx
cmp eax, 0xfffffff0
jbe 0x10241de7
inc ecx
mov dword [esi + 0x28], 1
push ecx
mov dword [esi + 0x2c], ecx
mov ecx, esi
push dword [esi + 0x28]
call fcn.100a9be0
mov ecx, dword [esi]
push 1
push 1
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x48], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x4c], eax
call fcn.101e43f0
jmp 0x10241deb
mov dword [esp + 0x10], edx
push dword [esi + 0x2c]
mov ecx, esi
push dword [esi + 0x28]
call fcn.100a9be0
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
mov dword [edx], eax
mov eax, dword [ecx + 0x10]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x38]
push 1
push 1
mov dword [edi + eax*8 + 0x60], edx
mov dword [edi + eax*8 + 0x64], ecx
mov ecx, ebx
call fcn.101e43f0
push ecx
push 0xf4240
push dword [ebx + 0xda4]
mov ecx, ebx
push dword [ebx + 0xda0]
call fcn.1001dbb0
cmp byte [edi + 0x129], 0
jne 0x102421be
xor eax, eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
mov esi, 1
mov eax, dword [0x11d0c5b8]
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x10], esi
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
nop word [eax + eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
test dword [ecx + 0xe8c8], esi
je 0x10241ec8
lea edx, [ebx + 0xb]
cmp edx, 0x36
je 0x102420bb
mov esi, dword [ecx + 0xfd48]
xor eax, eax
test esi, esi
je 0x10241ec0
add ecx, 0xf968
cmp dword [ecx], edx
je 0x102420aa
inc eax
add ecx, 0x20
cmp eax, esi
jb 0x10241eb0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
inc ebx
rol esi, 1
mov dword [esp + 0x10], esi
cmp ebx, 2
jb 0x10241e80
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x1024208a
cmp byte [ebx + 8], 0
jne 0x1024208a
mov ecx, ebx
call fcn.100ba5b0
test eax, eax
jns 0x1024208a
cmp byte [ebx + 8], 0
je 0x10241f0f
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x10241f0f
push 1
push 1
call fcn.101e43f0
cmp dword [ebx + 0x14], 0
je 0x1024207f
mov edx, dword [esp + 0xc]
cmp byte [edx + 8], 0
jne 0x10241f2f
call fcn.10450c0b
mov edx, dword [esp + 0xc]
mov esi, dword [ebx + 0xc]
test byte [esi + 0xdb8], 2
je 0x10241fae
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x7a98]
test ecx, ecx
je 0x10241f5b
push 1
lea eax, [esp + 0x28]
push eax
call fcn.10059ce0
mov edx, dword [esp + 0xc]
cmp dword [esi + 0xd64], 0
je 0x10241f9d
mov eax, dword [edx + 0x10]
xor ecx, ecx
cmp dword [eax + 0xf944], ecx
jbe 0x10241f9d
mov eax, dword [esi + ecx*4 + 0xd64]
test eax, eax
je 0x10241f83
mov byte [eax + 8], 0
mov dword [esi + ecx*4 + 0xd64], 0
inc ecx
mov eax, dword [edx + 0x10]
cmp ecx, dword [eax + 0xf944]
jb 0x10241f74
and byte [esi + 0xdb8], 0xfc
mov dword [esi + 0xd60], 0
cmp byte [ebx + 9], 0
jne 0x10242078
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 4]
mov dword [ecx + eax*4 + 0x11dc], 0
mov dword [ecx + eax*4 + 0x125c], 1
mov ecx, dword [ebx + 0x14]
call fcn.101c5f50
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x10242078
mov ecx, dword [esi + 0x634]
test ecx, ecx
je 0x10242048
mov eax, dword [esp + 0xc]
cmp byte [eax + 8], 0
jne 0x10242013
call fcn.10450c0b
mov ecx, dword [esi + 0x634]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xbe2c]
test byte [eax + 0xf5c], 4
jne 0x10242032
push 1
push ecx
mov ecx, dword [esi]
call fcn.101d7140
push dword [esi + 0x634]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x634], 0
cmp dword [esi + 0xc], 5
mov ecx, 0x36
je 0x10242056
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov dword [eax + ecx*4 + 0x12e0], 0xffffffff
mov ecx, esi
call fcn.101c60a0
push 0x798
push esi
call fcn.1045088a
add esp, 8
mov dword [ebx + 0x14], 0
mov byte [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0xdc]
cmp ecx, 0xfffffff6
jne 0x102420d7
cmp dword [eax + 0x12e4], 0xffffffff
jne 0x102420d7
mov ecx, dword [eax + 0x1338]
jmp 0x102420de
cmp eax, 0xffffffff
je 0x10241ec0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x7a68]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1b0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
jmp 0x10241ec4
mov ecx, dword [eax + ecx*4 + 0x130c]
cmp ecx, 0xffffffff
je 0x102420ec
mov eax, dword [eax + ecx*4 + 0x11dc]
jmp 0x102420ee
xor eax, eax
mov dword [edi + 0x20c], eax
lea eax, [edi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0xd3bc], 0
jne 0x10242132
cmp dword [eax + 0xd3c0], 0
jne 0x10242132
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + 0xf7c]
cmp byte [eax + 0xcf4], 0
je 0x10242196
mov eax, dword [edi + 0xdc]
mov edx, 4
mov ebx, dword [eax + 0xf7c]
mov eax, 0x1000
mov esi, dword [ebx + 0xc78]
add esi, esi
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10450898
add esp, 4
mov dword [esp + 0x24], eax
lea ecx, [esi*4]
push ecx
push 0
push eax
call fcn.10425c00
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x10242196
mov dword [ebx + 0xc70], eax
mov dword [ebx + 0xc74], esi
lea eax, [edi + 0xe4]
push eax
push 0
push edi
push 0x10241b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
mov dword [edi + 0xe0], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp byte [edi + 0x128], 0
je 0x102422ef
mov eax, dword [0x11d0c5b8]
add edi, 0x144
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x18], 6
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x10], eax
nop dword [eax]
mov eax, dword [eax + 0x10]
push 0x11d0c72c
mov esi, dword [eax + 0x7a70]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
jne 0x1024222e
mov eax, dword [esi + 4]
mov ecx, esi
add eax, eax
push eax
call fcn.100a8eb0
test al, al
jne 0x1024222e
push 0x11d0c72c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or ebx, 0xffffffff
jmp 0x10242262
dec dword [esi + 8]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0x11d0c72c
mov ebx, dword [eax + ecx*4]
mov eax, dword [esi]
lea edx, [ebx + ebx*2]
mov byte [eax + edx*8], 1
mov ecx, dword [esi]
mov dword [ecx + edx*8 + 8], 0xffffffff
mov eax, dword [esi]
mov dword [eax + edx*8 + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov dword [edi - 0x18], ebx
push 0x11d0c72c
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x7a70]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
jne 0x102422a7
mov eax, dword [esi + 4]
mov ecx, esi
add eax, eax
push eax
call fcn.100a8eb0
test al, al
jne 0x102422a7
push 0x11d0c72c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or ebx, 0xffffffff
jmp 0x102422db
dec dword [esi + 8]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0x11d0c72c
mov ebx, dword [eax + ecx*4]
mov eax, dword [esi]
lea edx, [ebx + ebx*2]
mov byte [eax + edx*8], 1
mov ecx, dword [esi]
mov dword [ecx + edx*8 + 8], 0xffffffff
mov eax, dword [esi]
mov dword [eax + edx*8 + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov dword [edi], ebx
add edi, 4
sub dword [esp + 0x18], 1
jne 0x102421f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8