Function at 0x579eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x877ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
xor eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea ebp, [ebx + 0x2c]
lea esi, [ebx + 0x5c]
mov dword [esp + 0x14], 4
jmp 0x579ef4
xor edi, edi
push 0x1c
call fcn.008325b4
add esp, 4
cmp eax, edi
je 0x579f24
mov dword [eax], method.CCommandLineInfo.virtual_0
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 0xa
mov dword [esp + 0x18], eax
jmp 0x579f28
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [edi + 1]
push eax
call fcn.0057ec20
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x18]
push 0
push SysReAllocString
push 0
push 0
mov dword [ecx + edi*4], edx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edi, dword [esi + 8]
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.0057ed60
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
dec eax
mov dword [ecx + edi*4], edx
mov dword [esp + 0x14], eax
jne 0x579ef2
mov eax, dword [0x9dce80]
test eax, eax
je 0x579fa2
push str.CTaskMgr2::Initialize
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x10
mov ecx, 1
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x304]
cmp eax, edx
jge 0x57a0b9
test ecx, ecx
mov dword [esp + 0x18], 0
jle 0x57a09e
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x304]
cmp eax, ecx
jge 0x57a09e
push 0x30
call fcn.008325b4
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov dword [esp + 0x40], 0
je 0x57a010
mov ecx, edi
call fcn.00654b50
mov dword [edi], 0x89ee30
jmp 0x57a012
xor edi, edi
mov eax, dword [esp + 0x10]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x314]
mov ecx, edi
mov dword [esp + 0x40], 0xffffffff
mov dword [edi + 0x18], eax
call fcn.00654d30
test eax, eax
je 0x57a12a
mov eax, dword [0x9dce80]
test eax, eax
je 0x57a062
mov eax, dword [edi + 4]
push eax
push str.CTaskMgr2::Initialize_Create_SharedThread_ID__d_
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
mov esi, dword [ebx + 0xc]
lea ebp, [ebx + 4]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, ebp
call fcn.0057eae0
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + esi*4], edi
mov eax, dword [edi + 0x2c]
mov esi, dword [esp + eax*4 + 0x28]
lea eax, [esp + eax*4 + 0x28]
inc esi
mov dword [eax], esi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x579fd4
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
dec esi
inc ecx
cmp ecx, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
jle 0x579fb3
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x308]
cmp eax, ecx
jge 0x57a320
mov eax, dword [ebx + 0x30c]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x57a30e
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x308]
cmp eax, ecx
jge 0x57a30e
push 0x30
call fcn.008325b4
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
mov dword [esp + 0x40], 1
je 0x57a152
mov ecx, edi
call fcn.00654b50
mov esi, edi
mov dword [edi], 0x89ee20
mov dword [esp + 0x18], esi
jmp 0x57a15e
test edi, edi
je 0x57a136
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov ecx, ebx
call fcn.0057a420
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
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 + 0x314]
mov dword [esi + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x40], 0xffffffff
call fcn.00654d30
test eax, eax
je 0x57a395
mov eax, dword [0x9dce80]
test eax, eax
je 0x57a1ae
mov edx, dword [esi + 4]
push edx
push str.CTaskMgr2::Initialize_Create_PrivateThread_ID__d_
push str.CTaskMgr2
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
mov ebp, edx
xor edi, edi
mov dword [esp + 0x24], ebp
inc ebp
cmp ebp, edi
jne 0x57a1e0
cmp eax, edi
je 0x57a1d5
push eax
mov dword [esp + 0x24], edx
call fcn.008325dd
add esp, 4
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], edi
jmp 0x57a2df
cmp eax, edi
jne 0x57a218
lea edi, [ebp*4]
push edi
call fcn.008325b4
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x1c], 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 + 0x24], ebp
mov dword [ebx + 0x20], ebp
jmp 0x57a2df
mov ecx, dword [ebx + 0x24]
cmp ebp, ecx
jg 0x57a248
cmp edx, ebp
jge 0x57a238
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 + 0x20], ebp
jmp 0x57a2df
jle 0x57a240
sub edx, ebp
mov dword [esp + 0x20], edx
mov dword [ebx + 0x20], ebp
jmp 0x57a2df
mov eax, dword [ebx + 0x28]
cmp eax, edi
jne 0x57a272
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x57a266
mov eax, 4
jmp 0x57a272
cmp eax, 0x400
jle 0x57a272
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x14], eax
jl 0x57a280
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
push ecx
call fcn.008325b4
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x1c]
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 + 0x24], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x20]
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 + 0x1c]
push eax
call fcn.008325dd
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esp, 8
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x24], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [eax + ecx*4], esi
mov edx, dword [esi + 0x2c]
mov esi, dword [esp + edx*4 + 0x28]
mov ecx, dword [ebx + 0x30c]
lea eax, [esp + edx*4 + 0x28]
inc esi
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x57a0e8
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x57a0c1
mov eax, dword [ebx + 0x310]
test eax, eax
jne 0x57a335
lea ecx, [ebx + 0x1b0]
call fcn.0057c5d0
lea ecx, [ebx + 0x90]
call fcn.0057b7e0
lea ecx, [ebx + 0x120]
call fcn.0057bf40
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
lea ecx, [ebx + 0x2e4]
mov dword [ebx + 0x1f4], ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [ebx + 0x1f0]
call fcn.0057cf10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
test esi, esi
je 0x57a3a1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, ebx
call fcn.0057a420
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret