Function at 0x4acc90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x4ace1e
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad60f
cmp dword [eax + 0x14], 3
jl 0x4ad60f
push 0x162
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n___threadsaccept__must_be_greater_than_zero.
push 3
call fcn.00472f60
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad60f
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ace09
cmp byte [edi + 8], 0
je 0x4ace09
cmp dword [edi + 0x14], 3
jl 0x4ace09
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4acd08
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ace09
test esi, esi
je 0x4ace09
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ace09
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4acd66
push dword [ebp + 8]
mov dword [ebx + 4], eax
call fcn.006e60fe
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 8]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4acd89
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4acd99
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ace09
cmp byte [esi + 0x10], 0
je 0x4acdb6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4acdb6
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4acde4
test eax, eax
je 0x4acdf3
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4acded
mov dword [ecx + 4], eax
jmp 0x4acdf0
test eax, eax
je 0x4acdf3
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ace09
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ace09
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
call fcn.006e60fe
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004acc10
push 1
push 1
call fcn.006e6b64
add esp, 8
mov dword [0x7f02f8], eax
test eax, eax
jne 0x4acf7b
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad207
cmp dword [eax + 0x14], 3
jl 0x4ad207
push 0x16c
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Failed_to_allocated_memory.
push 3
call fcn.00472f60
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad207
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad1fc
cmp byte [edi + 8], 0
je 0x4ad1fc
cmp dword [edi + 0x14], 3
jl 0x4ad1fc
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4acea0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ad1fc
test esi, esi
je 0x4ad1fc
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ad1fc
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x4ad1ce
push esi
push dword [ebp + 8]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4acf0d
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4acf1d
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ad1fc
cmp byte [esi + 0x10], 0
je 0x4acf3e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4acf3e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ad1d7
test eax, eax
je 0x4ad1e6
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ad1e0
mov dword [ecx + 4], eax
jmp 0x4ad1e3
push 1
push 1
call fcn.006e6b64
add esp, 8
mov dword [0x7f02f0], eax
test eax, eax
jne 0x4ad000
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad207
cmp dword [eax + 0x14], 3
jl 0x4ad207
push 0x174
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Failed_to_allocated_memory.
push 3
call fcn.00472f60
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad207
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad1fc
cmp byte [edi + 8], 0
je 0x4ad1fc
cmp dword [edi + 0x14], 3
jl 0x4ad1fc
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4acff4
jmp 0x4acea7
push 1
push 1
call fcn.006e6b64
add esp, 8
mov dword [0x7f02cc], eax
test eax, eax
jne 0x4ad08c
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad207
cmp dword [eax + 0x14], 3
jl 0x4ad207
push 0x17c
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Failed_to_allocated_memory.
push 3
call fcn.00472f60
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad207
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad1fc
cmp byte [edi + 8], 0
je 0x4ad1fc
cmp dword [edi + 0x14], 3
jl 0x4ad1fc
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad080
jmp 0x4acea7
push 1
push 1
call fcn.006e6b64
add esp, 8
mov dword [0x7f02d8], eax
test eax, eax
jne 0x4ad111
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad207
cmp dword [eax + 0x14], 3
jl 0x4ad207
push 0x184
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Failed_to_allocated_memory.
push 3
call fcn.00472f60
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad207
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad1fc
cmp byte [edi + 8], 0
je 0x4ad1fc
cmp dword [edi + 0x14], 3
jl 0x4ad1fc
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad105
jmp 0x4acea7
push 0xc
push esi
mov dword [0x7f02c8], esi
call fcn.006e6b64
add esp, 8
mov dword [0x7f02e4], eax
test eax, eax
jne 0x4ad216
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad207
cmp dword [eax + 0x14], 3
jl 0x4ad207
push 0x18e
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Failed_to_allocated_memory.
push 3
call fcn.00472f60
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad207
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad1fc
cmp byte [edi + 8], 0
je 0x4ad1fc
cmp dword [edi + 0x14], 3
jl 0x4ad1fc
mov esi, eax
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad190
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ad1fc
test esi, esi
je 0x4ad1fc
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ad1fc
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aceea
mov dword [ebx + 4], 0
jmp 0x4ad1fc
test eax, eax
je 0x4ad1e6
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ad1fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad1fc
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
call fcn.006e60fe
add esp, 4
call fcn.004acc10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.csp_child
call fcn.00471590
mov edx, eax
mov eax, dword [0x7f02c8]
mov dword [0x7f02e0], edx
test eax, eax
je 0x4ad256
mov ecx, dword [0x7f02e4]
add ecx, 4
nop word [eax + eax]
mov dword [ecx + 4], 0
lea ecx, [ecx + 0xc]
mov dword [ecx - 0xc], 0
sub eax, 1
jne 0x4ad240
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x7f02c8], ebx
je 0x4ad619
xor esi, esi
mov dword [ebp + 8], esi
nop dword [eax]
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad3eb
cmp dword [eax + 0x14], 7
jl 0x4ad3eb
push dword [0x7f02c8]
lea eax, [ebx + 1]
push eax
push 0x19e
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Trying_to_create_child__zu_of__zu
push 7
call fcn.00472f60
mov edi, eax
add esp, 0x18
mov dword [ebp - 8], edi
test edi, edi
je 0x4ad3e5
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad3da
cmp byte [edi + 8], 0
je 0x4ad3da
cmp dword [edi + 0x14], 7
jl 0x4ad3da
mov esi, eax
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad2e0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ad3d7
test esi, esi
je 0x4ad3d7
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ad3d4
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ad32e
mov dword [ebx + 4], eax
jmp 0x4ad3d4
push esi
push dword [ebp - 8]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4ad351
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ad361
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ad3d4
cmp byte [esi + 0x10], 0
je 0x4ad37e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad37e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ad3af
test eax, eax
je 0x4ad3be
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ad3b8
mov dword [ecx + 4], eax
jmp 0x4ad3bb
test eax, eax
je 0x4ad3be
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ad3d4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad3d4
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 8]
push dword [ebp - 8]
call fcn.006e60fe
add esp, 4
mov edx, dword [0x7f02e0]
mov eax, dword [0x7f02e4]
mov dword [esi + eax + 8], 1
test edx, edx
je 0x4ad40b
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x7f02e0]
inc dword [0x7f02c4]
test edx, edx
je 0x4ad424
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x7f02e0]
mov dword [ebp - 0xc], 0
add esi, dword [0x7f02e4]
je 0x4ad479
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x4ac510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x4ad473
mov esi, dword [ebp + 8]
inc ebx
add esi, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp + 8], esi
cmp ebx, dword [0x7f02c8]
je 0x4ad619
mov edx, dword [0x7f02e0]
jmp 0x4ad270
mov edx, dword [0x7f02e0]
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad5e9
cmp dword [eax + 0x14], 4
jl 0x4ad5e9
push dword [0x7f02c8]
lea eax, [ebx + 1]
push eax
push 0x1a6
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Could_not_create_child_number__zu_of__zu
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x18
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad5e3
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad5d8
cmp byte [edi + 8], 0
je 0x4ad5d8
cmp dword [edi + 0x14], 4
jl 0x4ad5d8
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad4e7
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ad5d8
test esi, esi
je 0x4ad5d8
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ad5d8
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ad535
mov dword [ebx + 4], eax
jmp 0x4ad5d8
push esi
push dword [ebp + 8]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4ad558
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ad568
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ad5d8
cmp byte [esi + 0x10], 0
je 0x4ad585
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad585
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ad5b3
test eax, eax
je 0x4ad5c2
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ad5bc
mov dword [ecx + 4], eax
jmp 0x4ad5bf
test eax, eax
je 0x4ad5c2
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ad5d8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad5d8
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
call fcn.006e60fe
add esp, 4
mov edx, dword [0x7f02e0]
test edx, edx
je 0x4ad5fc
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x7f02e0]
dec dword [0x7f02c4]
test edx, edx
je 0x4ad60f
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7f02dc]
test eax, eax
je 0x4ad78e
cmp dword [eax + 0x14], 6
jl 0x4ad78e
push dword [0x7f02c8]
push 0x1ad
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcchild.c
push str.__s:_d_:_n__Finished_creating_all___zu__children.
push 6
call fcn.00472f60
mov edi, eax
add esp, 0x14
mov dword [ebp + 8], edi
test edi, edi
je 0x4ad78e
mov edi, dword [0x7f02dc]
test edi, edi
je 0x4ad783
cmp byte [edi + 8], 0
je 0x4ad783
cmp dword [edi + 0x14], 6
jl 0x4ad783
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ad683
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ad783
test esi, esi
je 0x4ad783
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ad783
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ad6e0
push dword [ebp + 8]
mov dword [ebx + 4], eax
call fcn.006e60fe
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 8]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4ad703
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ad713
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ad783
cmp byte [esi + 0x10], 0
je 0x4ad730
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad730
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ad75e
test eax, eax
je 0x4ad76d
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ad767
mov dword [ecx + 4], eax
jmp 0x4ad76a
test eax, eax
je 0x4ad76d
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ad783
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad783
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
call fcn.006e60fe
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret