Function at 0x424176
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.004252e5
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov ecx, esi
cmp edi, ebx
jne 0x4241af
push 1
push dword [ebp + 8]
call fcn.00423971
jmp 0x424628
call fcn.00420040
test eax, eax
jne 0x424625
mov ecx, esi
call fcn.00420d64
test eax, eax
jne 0x424625
mov dword [esi + 0x148], ebx
cmp dword [esi + 0x210], ebx
jne 0x4241e0
mov ecx, esi
call fcn.004226b7
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.00420e8c
mov ecx, esi
mov edx, eax
call fcn.00420961
sub eax, edx
je 0x424206
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jle 0x4245f6
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x4245f6
push dword [ebp - 4]
lea ecx, [esi + 0x1d0]
call fcn.00420637
mov edi, eax
cmp dword [edi + 0x20], 4
je 0x4245e5
cmp dword [ebp - 8], 0
je 0x424255
push dword [edi + 0x34]
mov ecx, esi
push 0xf
call fcn.0041ffcc
test eax, eax
je 0x4245e5
jmp 0x42425c
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 0x424278
inc dword [esi + 0x8c]
jmp 0x424289
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
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.0042293d
mov dword [edi + 0x24], eax
test eax, eax
jne 0x42431f
push eax
push 0xc
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.0041ffcc
test eax, eax
je 0x424625
push 0
push 0xd
mov ecx, esi
call fcn.0041ffcc
test eax, eax
je 0x424625
mov eax, dword [edi + 0x24]
cmp eax, 5
je 0x42436a
cmp eax, 0xc
je 0x42434c
cmp eax, 0xf
je 0x4242fd
cmp eax, 0x18
jle 0x424377
cmp eax, 0x1a
jle 0x42436a
cmp eax, 0x1f
jne 0x424377
cmp dword [esi + 0xbc], 0
je 0x424645
cmp dword [ebp + 8], 0xffffffff
jne 0x42462f
dec dword [esi + 0x8c]
jmp 0x424640
cmp dword [ebp - 0x10], 0
je 0x4242d4
cmp dword [ebp + 8], 0xffffffff
jne 0x424336
dec dword [esi + 0x8c]
jmp 0x4245e5
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
dec dword [eax + 0x60]
jmp 0x4245e5
cmp dword [esi + 0xb8], 0
je 0x424377
cmp dword [ebp + 8], 0xffffffff
jne 0x4246a1
dec dword [esi + 0x8c]
jmp 0x4246b2
cmp dword [esi + 0xb4], 0
jne 0x4246ba
cmp eax, 0x1e
je 0x4243d0
cmp dword [ebx], 0
jne 0x4243d0
cmp dword [ebp - 0x10], 0
jne 0x4243d0
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.0042293d
test eax, eax
jne 0x4243d0
mov ecx, dword [ebx]
call fcn.00437cf0
cmp eax, dword [esi + 0xc0]
jne 0x4243b7
cmp edx, dword [esi + 0xc4]
je 0x4243c0
mov dword [edi + 0x24], 0x1e
jmp 0x4243d0
mov ecx, dword [ebx]
test ecx, ecx
je 0x4243cd
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [ebx], 0
cmp dword [edi + 0x24], 0x1e
jne 0x424561
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.00437cf0
mov ecx, dword [esi + 0xc4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc0]
mov ebx, edx
cmp eax, dword [ebp - 0x20]
jne 0x424402
cmp ecx, ebx
je 0x424561
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.0041ffcc
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [esi + 0xc0], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0xc4], ecx
je 0x42470e
dec eax
jne 0x42460e
cmp ecx, ebx
jb 0x4244e4
ja 0x424458
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], eax
jbe 0x4244e4
and dword [ebp - 8], 0
push dword [ebp - 8]
lea ecx, [esi + 0x1d0]
call fcn.00420637
mov edi, eax
cmp dword [edi + 0xc], ebx
jb 0x4244d3
ja 0x42447b
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 0x20]
jbe 0x4244d3
lea eax, [esi + 0x1c]
test eax, eax
je 0x424487
lea eax, [esi + 0x20]
jmp 0x424489
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 0x4244be
ja 0x4244ab
cmp dword [edi + 0x10], eax
jbe 0x4244be
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 0x4244ca
lea eax, [esi + 0x20]
jmp 0x4244cc
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 0x42445c
jmp 0x424530
and dword [ebp - 8], 0
push dword [ebp - 8]
lea ecx, [esi + 0x1d0]
call fcn.00420637
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 0xc0]
jne 0x42450c
mov eax, dword [eax + 0xc]
cmp eax, dword [esi + 0xc4]
je 0x424519
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x4244e8
jmp 0x424530
push dword [ebp - 8]
lea ecx, [esi + 0x1d0]
call fcn.00420637
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 0x424546
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 0x424325
cmp dword [ebp + 8], 0xffffffff
jne 0x42456f
dec dword [esi + 0x8c]
jmp 0x424580
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
dec dword [eax + 0x60]
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x424592
cmp dword [ebp - 0x10], 0
je 0x424640
push dword [ebp - 4]
inc dword [esi + 0x140]
inc dword [esi + 0x144]
push 6
mov ecx, esi
call fcn.0041ffcc
push dword [ebp - 4]
lea ecx, [esi + 0x1d0]
call fcn.00420637
push dword [ebp - 4]
xor ebx, ebx
lea ecx, [esi + 0x1d0]
mov dword [eax + 0x20], ebx
call fcn.00420637
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push 0x422962
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 0x424211
or dword [esi + 8], 0xffffffff
mov ecx, esi
mov dword [esi + 0x1fc], ebx
call fcn.00420040
neg eax
sbb eax, eax
inc eax
jmp 0x424628
dec eax
je 0x4246f3
cmp dword [ebp + 8], 0xffffffff
jne 0x4246dd
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.0042069c
dec dword [eax + 0x60]
mov eax, dword [edi + 0x24]
jmp 0x424628
push 0
push 0x12
mov ecx, esi
call fcn.0041ffcc
mov ecx, esi
call fcn.00420c1b
jmp 0x424661
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00420040
test eax, eax
jne 0x424659
lea ecx, [esi + 0x1d0]
call fcn.004205c1
cmp dword [ebp + 8], 0xffffffff
jne 0x424685
dec dword [esi + 0x8c]
jmp 0x424696
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
dec dword [eax + 0x60]
push 0
mov ecx, esi
call fcn.00424176
jmp 0x424628
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
dec dword [eax + 0x60]
push 0xc
pop eax
jmp 0x424628
cmp dword [ebp + 8], 0xffffffff
jne 0x4246c8
dec dword [esi + 0x8c]
jmp 0x4246d9
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
dec dword [eax + 0x60]
push 5
jmp 0x4246b4
push dword [ebp + 8]
lea ecx, [esi + 0x200]
call fcn.0042069c
dec dword [eax + 0x60]
jmp 0x424625
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x424615
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [edi + 0x1c], 0
jmp 0x424615
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x42466c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [edi + 0x1c], 0
jmp 0x42466c