Function at 0x10005775
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 + 0x1b0]
lea ecx, [esi + 0xb8]
mov dword [ebp - 0xc], edi
call fcn.100083ff
xor ebx, ebx
mov ecx, esi
cmp edi, ebx
jne 0x100057a8
push 1
push dword [ebp + 8]
call fcn.10003c16
jmp 0x100057da
call fcn.10005e38
test eax, eax
jne 0x100057d7
mov ecx, esi
call fcn.10005db0
test eax, eax
jne 0x100057d7
mov ecx, esi
mov dword [esi + 0x12c], ebx
call fcn.100069f0
test eax, eax
je 0x100057e1
push ebx
push 0x20
mov ecx, esi
call fcn.10005d14
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jne 0x100057f5
push ebx
lea ecx, [esi + 0x1a0]
call fcn.10007105
cmp dword [esi + 0x1e0], ebx
jne 0x10005804
mov ecx, esi
call fcn.1000690f
push ebx
push 0xc
mov ecx, esi
call fcn.10005d14
test eax, eax
jne 0x10005816
mov eax, edi
jmp 0x100057da
push ebx
push 0xd
mov ecx, esi
call fcn.10005d14
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], ebx
mov dword [esi + 0x1cc], edi
mov dword [ebp - 4], ebx
jle 0x10005baa
cmp dword [esi + 0x12c], ebx
jne 0x10005baa
push dword [ebp - 4]
lea ecx, [esi + 0x1a0]
call fcn.10007105
mov edi, eax
cmp dword [edi + 0x20], 4
je 0x10005b99
cmp dword [ebp - 8], 0
je 0x1000587a
push dword [edi + 0x34]
mov ecx, esi
push 0xf
call fcn.10005d14
test eax, eax
je 0x10005b99
jmp 0x10005881
mov dword [ebp - 8], 1
mov eax, dword [edi + 0x34]
lea ebx, [edi + 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], eax
and dword [ebx], 0
cmp eax, 0xffffffff
jne 0x1000589a
inc dword [esi + 0x78]
jmp 0x100058ad
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
inc dword [eax]
push 0
lea eax, [edi + 0x34]
push 1
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x14]
mov ecx, esi
push dword [edi + 0x10]
call fcn.10004e10
test eax, eax
mov dword [edi + 0x24], eax
jne 0x100058d5
mov dword [ebp - 0x14], 1
jmp 0x100058df
cmp dword [ebp - 0x14], 0
jne 0x10005af0
cmp eax, 5
je 0x100058fc
cmp eax, 0xc
je 0x10005952
cmp eax, 0xf
je 0x10005be7
cmp eax, 0x18
jle 0x10005909
cmp eax, 0x1a
jg 0x10005909
cmp dword [esi + 0x9c], 0
jne 0x10005c66
cmp eax, 0x1e
je 0x1000597c
cmp dword [ebx], 0
jne 0x1000597c
cmp dword [ebp - 0x14], 0
jne 0x1000597c
xor ecx, ecx
lea eax, [edi + 0x34]
push ecx
push 1
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
mov ecx, esi
call fcn.10004e10
test eax, eax
jne 0x1000597c
mov ecx, dword [ebx]
call fcn.1000b210
cmp eax, dword [esi + 0xa8]
jne 0x10005949
cmp edx, dword [esi + 0xac]
je 0x1000596d
mov dword [edi + 0x24], 0x1e
jmp 0x1000597c
cmp dword [esi + 0xa0], 0
je 0x10005909
cmp dword [ebp + 8], 0xffffffff
jne 0x10005c4f
dec dword [esi + 0x78]
jmp 0x10005c62
mov ecx, dword [ebx]
test ecx, ecx
je 0x10005979
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [ebx], 0
cmp dword [edi + 0x24], 0x1e
jne 0x10005b16
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.1000b210
mov ecx, dword [esi + 0xac]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa8]
mov ebx, edx
cmp eax, dword [ebp - 0x20]
jne 0x100059ae
cmp ecx, ebx
je 0x10005b16
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push 0
push 0xe
mov ecx, esi
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ebx
call fcn.10005d14
mov ecx, dword [ebp - 0x28]
dec eax
mov dword [esi + 0xa8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0xac], ecx
je 0x10005ca4
dec eax
jne 0x10005bc1
cmp ecx, ebx
jb 0x10005a7b
ja 0x10005a00
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], eax
jbe 0x10005a7b
and dword [ebp - 8], 0
push dword [ebp - 8]
lea ecx, [esi + 0x1a0]
call fcn.10007105
mov edi, eax
mov eax, dword [edi + 0xc]
cmp eax, ebx
jb 0x10005a6e
ja 0x10005a25
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 0x20]
jbe 0x10005a6e
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x44], ebx
mov dword [edi + 0x40], eax
mov dword [edi + 8], eax
mov eax, dword [edi + 0x14]
mov dword [edi + 0xc], ebx
cmp eax, ebx
jb 0x10005a64
mov eax, dword [ebp - 0x20]
ja 0x10005a51
mov ecx, dword [edi + 0x10]
cmp ecx, eax
jbe 0x10005a64
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 + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x10005a04
jmp 0x10005ac5
and dword [ebp - 8], 0
push dword [ebp - 8]
lea edi, [esi + 0x1a0]
mov ecx, edi
call fcn.10007105
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 0xa8]
jne 0x10005aa5
mov eax, dword [eax + 0xc]
cmp eax, dword [esi + 0xac]
je 0x10005ab2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x10005a7f
jmp 0x10005ac5
push dword [ebp - 8]
mov ecx, edi
call fcn.10007105
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x10005ada
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x10]
and dword [eax], 0
mov eax, dword [ebp - 0x20]
dec dword [ebp - 4]
and dword [ebp - 8], 0
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ebx
cmp dword [ebp + 8], 0xffffffff
jne 0x10005afe
dec dword [esi + 0x78]
jmp 0x10005b99
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
jmp 0x10005b99
cmp dword [ebp + 8], 0xffffffff
jne 0x10005b21
dec dword [esi + 0x78]
jmp 0x10005b34
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10005b46
cmp dword [ebp - 0x14], 0
je 0x10005cd8
push dword [ebp - 4]
add dword [esi + 0x124], 1
add dword [esi + 0x128], 1
mov ecx, esi
push 6
call fcn.10005d14
push dword [ebp - 4]
lea edi, [esi + 0x1a0]
mov ecx, edi
call fcn.10007105
xor ebx, ebx
mov ecx, edi
mov dword [eax + 0x20], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 4]
call fcn.10007105
push eax
push 0x100042d9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x10005838
mov ecx, esi
mov dword [esi + 0x1cc], ebx
call fcn.10005e38
neg eax
sbb eax, eax
inc eax
jmp 0x100057da
dec eax
jne 0x10005bd5
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10005bd5
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi + 0x1c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x10005c8c
dec dword [esi + 0x78]
jmp 0x100057d7
cmp dword [esi + 0xa4], 0
je 0x10005c12
cmp dword [ebp + 8], 0xffffffff
jne 0x10005bfb
dec dword [esi + 0x78]
jmp 0x10005c0e
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
push 0xf
jmp 0x10005c86
push 0
push 0x12
mov ecx, esi
call fcn.10005d14
mov ecx, esi
call fcn.10005698
jmp 0x10005c2e
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.10005e38
test eax, eax
jne 0x10005c26
lea ecx, [esi + 0x1a0]
call fcn.10006fb5
cmp dword [ebp + 8], 0xffffffff
jne 0x10005cb7
dec dword [esi + 0x78]
jmp 0x10005cca
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
push 0xc
jmp 0x10005c86
cmp dword [ebp + 8], 0xffffffff
jne 0x10005c71
dec dword [esi + 0x78]
jmp 0x10005c84
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
push 5
pop eax
jmp 0x100057da
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
jmp 0x100057d7
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x10005c39
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi + 0x1c], 0
jmp 0x10005c39
push dword [ebp + 8]
lea ecx, [esi + 0x1d0]
call fcn.1000716b
add eax, 0x50
dec dword [eax]
push 0
mov ecx, esi
call fcn.10005775
jmp 0x100057da
mov eax, dword [edi + 0x24]
jmp 0x100057da