Function at 0x100090a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x1e0]
lea ecx, [esi + 0xd0]
mov dword [ebp - 0x14], edi
call fcn.1000a96a
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov ecx, esi
cmp edi, ebx
jne 0x100090dd
push 1
push dword [ebp + 8]
call fcn.1000889b
jmp 0x10009556
call fcn.10004eba
test eax, eax
jne 0x10009553
mov ecx, esi
call fcn.10005c16
test eax, eax
jne 0x10009553
mov dword [esi + 0x148], ebx
cmp dword [esi + 0x210], ebx
jne 0x1000910e
mov ecx, esi
call fcn.100075df
xor eax, eax
inc eax
mov ecx, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x1fc], eax
call fcn.10005d3e
mov ecx, esi
mov edx, eax
call fcn.10005815
sub eax, edx
je 0x10009134
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jle 0x10009524
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x10009524
push dword [ebp - 4]
lea ecx, [esi + 0x1d0]
call fcn.100054f9
mov edi, eax
cmp dword [edi + 0x20], 4
je 0x10009513
cmp dword [ebp - 8], 0
je 0x10009183
push dword [edi + 0x34]
mov ecx, esi
push 0xf
call fcn.10004e46
test eax, eax
je 0x10009513
jmp 0x1000918a
mov dword [ebp - 8], 1
mov eax, dword [edi + 0x34]
lea ebx, [edi + 0x1c]
and dword [ebx], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x100091a6
inc dword [esi + 0x8c]
jmp 0x100091b7
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
inc dword [eax + 0x60]
push 0
push 1
lea eax, [edi + 0x34]
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x14]
mov ecx, esi
push dword [edi + 0x10]
call fcn.10007865
mov dword [edi + 0x24], eax
test eax, eax
jne 0x1000924d
push eax
push 0xc
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10004e46
test eax, eax
je 0x10009553
push 0
push 0xd
mov ecx, esi
call fcn.10004e46
test eax, eax
je 0x10009553
mov eax, dword [edi + 0x24]
cmp eax, 5
je 0x10009298
cmp eax, 0xc
je 0x1000927a
cmp eax, 0xf
je 0x1000922b
cmp eax, 0x18
jle 0x100092a5
cmp eax, 0x1a
jle 0x10009298
cmp eax, 0x1f
jne 0x100092a5
cmp dword [esi + 0xbc], 0
je 0x10009573
cmp dword [ebp + 8], 0xffffffff
jne 0x1000955d
dec dword [esi + 0x8c]
jmp 0x1000956e
cmp dword [ebp - 0x10], 0
je 0x10009202
cmp dword [ebp + 8], 0xffffffff
jne 0x10009264
dec dword [esi + 0x8c]
jmp 0x10009513
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
jmp 0x10009513
cmp dword [esi + 0xb8], 0
je 0x100092a5
cmp dword [ebp + 8], 0xffffffff
jne 0x100095cf
dec dword [esi + 0x8c]
jmp 0x100095e0
cmp dword [esi + 0xb4], 0
jne 0x100095e8
cmp eax, 0x1e
je 0x100092fe
cmp dword [ebx], 0
jne 0x100092fe
cmp dword [ebp - 0x10], 0
jne 0x100092fe
xor ecx, ecx
push ecx
push 1
lea eax, [edi + 0x34]
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
mov ecx, esi
call fcn.10007865
test eax, eax
jne 0x100092fe
mov ecx, dword [ebx]
call fcn.10010270
cmp eax, dword [esi + 0xc0]
jne 0x100092e5
cmp edx, dword [esi + 0xc4]
je 0x100092ee
mov dword [edi + 0x24], 0x1e
jmp 0x100092fe
mov ecx, dword [ebx]
test ecx, ecx
je 0x100092fb
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [ebx], 0
cmp dword [edi + 0x24], 0x1e
jne 0x1000948f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.10010270
mov ecx, dword [esi + 0xc4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc0]
mov ebx, edx
cmp eax, dword [ebp - 0x20]
jne 0x10009330
cmp ecx, ebx
je 0x1000948f
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
push 0
mov dword [ebp - 0x24], ecx
push 0xe
mov ecx, esi
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], ebx
call fcn.10004e46
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [esi + 0xc0], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0xc4], ecx
je 0x1000963c
dec eax
jne 0x1000953c
cmp ecx, ebx
jb 0x10009412
ja 0x10009386
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], eax
jbe 0x10009412
and dword [ebp - 8], 0
push dword [ebp - 8]
lea ecx, [esi + 0x1d0]
call fcn.100054f9
mov edi, eax
cmp dword [edi + 0xc], ebx
jb 0x10009401
ja 0x100093a9
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 0x20]
jbe 0x10009401
lea eax, [esi + 0x1c]
test eax, eax
je 0x100093b5
lea eax, [esi + 0x20]
jmp 0x100093b7
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
cmp dword [edi + 0x14], ebx
jb 0x100093ec
ja 0x100093d9
cmp dword [edi + 0x10], eax
jbe 0x100093ec
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x20], 4
lea eax, [esi + 0x1c]
test eax, eax
je 0x100093f8
lea eax, [esi + 0x20]
jmp 0x100093fa
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x1000938a
jmp 0x1000945e
and dword [ebp - 8], 0
push dword [ebp - 8]
lea ecx, [esi + 0x1d0]
call fcn.100054f9
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 0xc0]
jne 0x1000943a
mov eax, dword [eax + 0xc]
cmp eax, dword [esi + 0xc4]
je 0x10009447
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x10009416
jmp 0x1000945e
push dword [ebp - 8]
lea ecx, [esi + 0x1d0]
call fcn.100054f9
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x10009474
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [ebp - 0xc]
and dword [eax], 0
mov eax, dword [ebp - 0x20]
dec dword [ebp - 4]
and dword [ebp - 8], 0
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], ebx
jmp 0x10009253
cmp dword [ebp + 8], 0xffffffff
jne 0x1000949d
dec dword [esi + 0x8c]
jmp 0x100094ae
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x100094c0
cmp dword [ebp - 0x10], 0
je 0x1000956e
push dword [ebp - 4]
inc dword [esi + 0x140]
inc dword [esi + 0x144]
push 6
mov ecx, esi
call fcn.10004e46
push dword [ebp - 4]
lea ecx, [esi + 0x1d0]
call fcn.100054f9
push dword [ebp - 4]
xor ebx, ebx
lea ecx, [esi + 0x1d0]
mov dword [eax + 0x20], ebx
call fcn.100054f9
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push 0x1000788a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp eax, dword [ebp - 0x14]
jl 0x1000913f
or dword [esi + 8], 0xffffffff
mov ecx, esi
mov dword [esi + 0x1fc], ebx
call fcn.10004eba
neg eax
sbb eax, eax
inc eax
jmp 0x10009556
dec eax
je 0x10009621
cmp dword [ebp + 8], 0xffffffff
jne 0x1000960b
dec dword [esi + 0x8c]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
mov eax, dword [edi + 0x24]
jmp 0x10009556
push 0
push 0x12
mov ecx, esi
call fcn.10004e46
mov ecx, esi
call fcn.10005acd
jmp 0x1000958f
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.10004eba
test eax, eax
jne 0x10009587
lea ecx, [esi + 0x1d0]
call fcn.10005483
cmp dword [ebp + 8], 0xffffffff
jne 0x100095b3
dec dword [esi + 0x8c]
jmp 0x100095c4
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
push 0
mov ecx, esi
call fcn.100090a4
jmp 0x10009556
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
push 0xc
pop eax
jmp 0x10009556
cmp dword [ebp + 8], 0xffffffff
jne 0x100095f6
dec dword [esi + 0x8c]
jmp 0x10009607
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
push 5
jmp 0x100095e2
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.1000555e
dec dword [eax + 0x60]
jmp 0x10009553
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10009543
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [edi + 0x1c], 0
jmp 0x10009543
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x1000959a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [edi + 0x1c], 0
jmp 0x1000959a