Function at 0x1001cef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1011fa66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
xor eax, eax
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea edi, [ebx + 0x24]
lea ebp, [ebx + 0x4c]
mov dword [esp + 0x18], 4
jmp 0x1001cf34
xor esi, esi
push 0x18
call fcn.10062117
add esp, 4
cmp eax, esi
je 0x1001cf5d
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 0x1e
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [esp + 0x1c], eax
jmp 0x1001cf61
mov dword [esp + 0x1c], esi
mov esi, dword [edi + 4]
push 0xffffffffffffffff
mov ecx, edi
lea eax, [esi + 1]
push eax
call fcn.100202e0
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push 0
push closesocket
push 0
push 0
mov dword [ecx + esi*4], edx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov esi, dword [ebp + 4]
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.10020410
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x20]
dec eax
mov dword [ecx + esi*4], edx
mov dword [esp + 0x18], eax
jne 0x1001cf32
mov eax, dword [0x1016f218]
test eax, eax
je 0x1001cfda
push str.CTaskMgr2::Initialize
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x1016e984
call fcn.100602c0
add esp, 0x10
lea ebp, [ebx + 0x1fc]
xor edi, edi
mov esi, ebp
mov eax, dword [0x1016f218]
test eax, eax
je 0x1001d00e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
push eax
push ecx
push edi
push str.CTaskMgr2::Initialize_level__d___SharedThreadNum__lu__PrivateThreadNum__lu_
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x1016e984
call fcn.100602c0
add esp, 0x1c
inc edi
add esi, 4
cmp edi, 4
jl 0x1001cfe4
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebp
mov eax, dword [ebp]
mov dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x20], eax
jle 0x1001d0f3
push 0x30
call fcn.10062117
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
test edi, edi
mov dword [esp + 0x48], 0
je 0x1001d065
mov ecx, edi
call fcn.1003ddf0
mov dword [edi], 0x1012675c
jmp 0x1001d067
xor edi, edi
mov edx, dword [esp + 0x10]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], edx
mov eax, dword [ebx + 0x1f8]
mov ecx, edi
mov dword [esp + 0x48], 0xffffffff
mov dword [edi + 0x18], eax
call fcn.1003dfc0
test eax, eax
je 0x1001d16d
mov eax, dword [0x1016f218]
test eax, eax
je 0x1001d0b7
mov eax, dword [edi + 4]
push eax
push str.CTaskMgr2::Initialize_Create_SharedThread_ID__d_
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x1016e984
call fcn.100602c0
add esp, 0x14
mov esi, dword [ebx + 8]
lea ebp, [ebx + 4]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.100201b0
mov ecx, dword [ebp]
mov dword [ecx + esi*4], edi
mov edx, dword [edi + 0x2c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + edx*4 + 0x30]
lea eax, [esp + edx*4 + 0x30]
inc esi
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x1001d03a
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
inc eax
add ebp, 4
cmp eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
jl 0x1001d023
lea ecx, [ebx + 0x20c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x2c], eax
jle 0x1001d34f
push 0x30
call fcn.10062117
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
mov dword [esp + 0x48], 1
je 0x1001d195
mov ecx, edi
call fcn.1003ddf0
mov esi, edi
mov dword [edi], 0x1012674c
mov dword [esp + 0x18], esi
jmp 0x1001d1a1
test edi, edi
je 0x1001d179
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, ebx
call fcn.1001d460
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx + 0x1f8]
mov dword [esi + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x48], 0xffffffff
call fcn.1003dfc0
test eax, eax
je 0x1001d3d1
mov eax, dword [0x1016f218]
test eax, eax
je 0x1001d1f1
mov edx, dword [esi + 4]
push edx
push str.CTaskMgr2::Initialize_Create_PrivateThread_ID__d_
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x1016e984
call fcn.100602c0
add esp, 0x14
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov ebp, edx
xor edi, edi
mov dword [esp + 0x28], ebp
inc ebp
cmp ebp, edi
jne 0x1001d223
cmp eax, edi
je 0x1001d218
push eax
mov dword [esp + 0x28], edx
call fcn.100620d6
add esp, 4
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], edi
jmp 0x1001d322
cmp eax, edi
jne 0x1001d25b
lea edi, [ebp*4]
push edi
call fcn.10062117
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x14], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x18], ebp
jmp 0x1001d322
mov ecx, dword [ebx + 0x1c]
cmp ebp, ecx
jg 0x1001d28b
cmp edx, ebp
jge 0x1001d27b
mov ecx, ebp
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebx + 0x18], ebp
jmp 0x1001d322
jle 0x1001d283
sub edx, ebp
mov dword [esp + 0x24], edx
mov dword [ebx + 0x18], ebp
jmp 0x1001d322
mov eax, dword [ebx + 0x20]
cmp eax, edi
jne 0x1001d2b5
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1001d2a9
mov eax, 4
jmp 0x1001d2b5
cmp eax, 0x400
jle 0x1001d2b5
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x14], eax
jl 0x1001d2c3
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call fcn.10062117
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x28], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x18]
mov ecx, ebp
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.100620d6
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esp, 8
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], edx
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*4], esi
mov edx, dword [esi + 0x2c]
mov esi, dword [esp + edx*4 + 0x30]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + edx*4 + 0x30]
inc esi
mov dword [eax], esi
mov eax, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x1001d13c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
jl 0x1001d122
mov eax, dword [ebx + 0x1f4]
test eax, eax
jne 0x1001d381
lea ecx, [ebx + 0x104]
call fcn.1001f240
lea ecx, [ebx + 0x7c]
call fcn.1001eae0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [ebx + 0x1d4]
mov dword [ebx + 0x1d4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [ebx + 0x140]
call fcn.1001fbc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
test esi, esi
je 0x1001d3dd
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, ebx
call fcn.1001d460
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret