Function at 0x41c8f0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ef0e6
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x108], ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], vtable.tpsp::TASKLIST.0
call fcn.004bdb50
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x108], 1
mov eax, dword [esi + 0xc]
cmp eax, dword [edi + 0xc]
jle 0x41ca96
mov dword [esp + 0x28], ebx
cmp eax, ebx
jle 0x41cab6
lea esp, [esp]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp edi, dword [esi + 0xc]
jl 0x41c9ec
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2f], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 2
or dword [esp + 0x14], 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x27]
call fcn.0049ad20
mov dword [esp + 0x108], 1
test byte [esp + 0x14], 1
je 0x41ca0f
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x80]
call fcn.0049a810
mov ecx, dword [esi + 8]
mov eax, dword [ecx + edi*4]
mov eax, dword [eax + 0x10]
mov esi, dword [esp + 0x30]
push eax
mov dword [esp + 0x20], eax
call fcn.0041aee0
test eax, eax
je 0x41ca37
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add edi, 8
jmp 0x41ca56
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add edi, 0x3c
push ecx
call fcn.0041c610
cmp eax, 0xffffffff
je 0x41ca7e
mov edi, dword [esp + 0x2c]
add edi, 0x44
mov esi, eax
call fcn.00421ce0
lea esi, [esp + 0x68]
mov edi, eax
call fcn.00421c40
mov esi, eax
cmp edi, esi
je 0x41ca7e
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, edi
mov ecx, esi
call fcn.0042d6e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx + 0xc]
jl 0x41c9a0
jmp 0x41cab6
lea edx, [esp + 0x60]
cmp esi, edx
je 0x41cab6
mov eax, dword [esp + 0x60]
mov ecx, edx
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x24]
lea esi, [esp + 0x60]
call fcn.0042b2b0
xor esi, esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x108], 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], vtable.tpsp::TASKLIST.0
call fcn.004bdb50
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x108], 4
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
jle 0x41d059
mov eax, dword [esp + 0x2c]
add eax, 0x3c
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x24]
cmp esi, ecx
jl 0x41cb57
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2f], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 5
or dword [esp + 0x14], 2
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x27]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 2
je 0x41cb7a
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x80]
call fcn.0049a810
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 0x10]
mov edi, dword [esp + 0x3c]
push eax
call fcn.0041c610
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x41cce7
cmp esi, dword [esp + 0x6c]
jl 0x41cbe0
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x43], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 6
or dword [esp + 0x14], 4
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x3b]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 4
je 0x41cc03
and dword [esp + 0x14], 0xfffffffb
lea ecx, [esp + 0x80]
call fcn.0049a810
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
mov edi, dword [edx + esi*4]
cmp eax, ecx
jge 0x41cc27
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x4c], eax
jmp 0x41ccc8
mov eax, dword [esp + 0x54]
cmp ecx, eax
jne 0x41cc3a
inc eax
push eax
lea ecx, [esp + 0x4c]
call fcn.0049b060
inc dword [esp + 0x50]
push 0x48
call fcn.004819b0
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
je 0x41ccaf
mov byte [esp + 0x108], 8
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKINDEX.0
call fcn.004bdb50
mov edx, dword [0x526210]
mov ecx, dword [0x526214]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, 0x51f6e0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x14], 0xe10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], ebx
jmp 0x41ccb1
xor esi, esi
mov byte [esp + 0x108], 4
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [eax + edx*4], esi
inc dword [esp + 0x4c]
cmp edi, esi
je 0x41d040
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, edi
mov ecx, esi
call fcn.0042d6e0
jmp 0x41d040
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
cmp ecx, eax
jge 0x41ceee
jmp 0x41cd00
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp edx, dword [ecx + 0x48]
jl 0x41cd4c
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x42], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 9
or dword [esp + 0x14], 8
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x3a]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 8
je 0x41cd6f
and dword [esp + 0x14], 0xfffffff7
lea ecx, [esp + 0x80]
call fcn.0049a810
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x10]
push eax
lea esi, [esp + 0x64]
call fcn.0041aee0
test eax, eax
jne 0x41ced7
mov esi, dword [esp + 0x28]
cmp esi, dword [edi + 0x48]
jl 0x41cdda
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2e], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 0xa
or dword [esp + 0x14], 0x10
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x26]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 0x10
je 0x41cdfd
and dword [esp + 0x14], 0xffffffef
lea ecx, [esp + 0x80]
call fcn.0049a810
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [edi + 0x44]
mov edi, dword [edx + esi*4]
cmp eax, ecx
jge 0x41ce20
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x4c], eax
jmp 0x41cec1
mov eax, dword [esp + 0x54]
cmp ecx, eax
jne 0x41ce33
inc eax
push eax
lea ecx, [esp + 0x4c]
call fcn.0049b060
inc dword [esp + 0x50]
push 0x48
call fcn.004819b0
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
cmp esi, ebx
je 0x41cea8
mov byte [esp + 0x108], 0xc
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKINDEX.0
call fcn.004bdb50
mov edx, dword [0x526210]
mov ecx, dword [0x526214]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, 0x51f6e0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x14], 0xe10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], ebx
jmp 0x41ceaa
xor esi, esi
mov byte [esp + 0x108], 4
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [eax + edx*4], esi
inc dword [esp + 0x4c]
cmp edi, esi
je 0x41ced7
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, edi
mov ecx, esi
call fcn.0042d6e0
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x30]
jl 0x41cd00
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x6c]
jl 0x41cf33
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x27], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 0xd
or dword [esp + 0x14], 0x20
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x1f]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 0x20
je 0x41cf56
and dword [esp + 0x14], 0xffffffdf
lea ecx, [esp + 0x80]
call fcn.0049a810
mov ecx, dword [esp + 0x68]
mov edi, dword [ecx + esi*4]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x41cf7a
mov edx, dword [esp + 0x48]
mov esi, dword [edx + eax*4]
inc eax
mov dword [esp + 0x4c], eax
jmp 0x41d01b
mov eax, dword [esp + 0x54]
cmp ecx, eax
jne 0x41cf8d
inc eax
push eax
lea ecx, [esp + 0x4c]
call fcn.0049b060
inc dword [esp + 0x50]
push 0x48
call fcn.004819b0
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
cmp esi, ebx
je 0x41d002
mov byte [esp + 0x108], 0xf
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKINDEX.0
call fcn.004bdb50
mov ecx, dword [0x526210]
mov edx, dword [0x526214]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, 0x51f6e0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x14], 0xe10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], ebx
jmp 0x41d004
xor esi, esi
mov byte [esp + 0x108], 4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [ecx + eax*4], esi
inc dword [esp + 0x4c]
cmp edi, esi
je 0x41d031
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, edi
mov ecx, esi
call fcn.0042d6e0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
jg 0x41d040
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x41cb10
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x48]
cmp esi, eax
jge 0x41d1d7
mov dword [esp + 0x1c], esi
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp edx, dword [eax + 0x48]
jl 0x41d0bc
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x8c]
mov byte [esp + 0x27], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 0x10
or dword [esp + 0x14], 0x40
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x1f]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 0x40
je 0x41d0df
and dword [esp + 0x14], 0xffffffbf
lea ecx, [esp + 0x80]
call fcn.0049a810
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x44]
mov eax, dword [esp + 0x1c]
mov edi, dword [edx + eax*4]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x41d10a
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x4c], eax
jmp 0x41d1ab
mov eax, dword [esp + 0x54]
cmp ecx, eax
jne 0x41d11d
inc eax
push eax
lea ecx, [esp + 0x4c]
call fcn.0049b060
inc dword [esp + 0x50]
push 0x48
call fcn.004819b0
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
cmp esi, ebx
je 0x41d192
mov byte [esp + 0x108], 0x12
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKINDEX.0
call fcn.004bdb50
mov edx, dword [0x526210]
mov ecx, dword [0x526214]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, 0x51f6e0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x14], 0xe10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], ebx
jmp 0x41d194
xor esi, esi
mov byte [esp + 0x108], 4
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [eax + edx*4], esi
inc dword [esp + 0x4c]
cmp edi, esi
je 0x41d1c1
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, edi
mov ecx, esi
call fcn.0042d6e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx + 0x48]
jl 0x41d070
mov edi, dword [esp + 0x2c]
add edi, 0x44
xor esi, esi
mov dword [esp + 0x1c], edi
cmp dword [edi + 4], ebx
jle 0x41d202
lea esp, [esp]
mov edx, dword [edi]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
inc esi
cmp esi, dword [edi + 4]
jl 0x41d1f0
mov eax, dword [esp + 0x4c]
mov dword [edi + 4], ebx
mov dword [esp + 0x24], ebx
cmp eax, ebx
jle 0x41d53e
mov esi, dword [esp + 0x24]
cmp esi, eax
jl 0x41d25f
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0xb4]
mov byte [esp + 0x27], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 0x13
or dword [esp + 0x14], 0x80
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x1f]
call fcn.0049ad20
mov dword [esp + 0x108], 4
test byte [esp + 0x14], 0x80
je 0x41d285
and dword [esp + 0x14], 0xffffff7f
lea ecx, [esp + 0xa8]
call fcn.0049a810
mov eax, dword [esp + 0x48]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0xc]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.00402c50
mov byte [esp + 0x108], 0x14
mov edx, dword [esp + 0x90]
cmp edx, 7
jb 0x41d2d1
mov edx, 7
cmp dword [esp + 0x94], 0x10
mov esi, dword [esp + 0x80]
jae 0x41d2e9
lea esi, [esp + 0x80]
mov ecx, str.Removed
cmp edx, 4
jb 0x41d307
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x41d30b
sub edx, 4
add ecx, 4
add esi, 4
cmp edx, 4
jae 0x41d2f3
cmp edx, ebx
je 0x41d356
movzx eax, byte [esi]
movzx edi, byte [ecx]
sub eax, edi
jne 0x41d346
cmp edx, 1
jbe 0x41d352
movzx eax, byte [esi + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x41d346
cmp edx, 2
jbe 0x41d352
movzx eax, byte [esi + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x41d346
cmp edx, 3
jbe 0x41d352
movzx eax, byte [esi + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
mov edi, dword [esp + 0x1c]
sar eax, 0x1f
or eax, 1
jmp 0x41d358
mov edi, dword [esp + 0x1c]
xor eax, eax
cmp eax, ebx
jne 0x41d379
mov eax, dword [esp + 0x90]
cmp eax, 7
jae 0x41d36d
or eax, 0xffffffff
jmp 0x41d377
xor edx, edx
cmp eax, 7
setne dl
mov eax, edx
cmp eax, ebx
sete al
cmp al, bl
je 0x41d3a3
mov byte [esp + 0x108], 4
cmp dword [esp + 0x94], 0x10
jb 0x41d510
mov eax, dword [esp + 0x80]
push eax
jmp 0x41d508
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x4c]
jl 0x41d3ef
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0xdc]
mov byte [esp + 0x2e], bl
call fcn.0049a7e0
mov byte [esp + 0x108], 0x15
or dword [esp + 0x14], 0x100
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x26]
call fcn.0049ad20
mov dword [esp + 0x108], 0x14
test dword [esp + 0x14], 0x100
je 0x41d418
and dword [esp + 0x14], 0xfffffeff
lea ecx, [esp + 0xd0]
call fcn.0049a810
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + esi*4]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x30], edx
cmp eax, ecx
jge 0x41d43b
mov ecx, dword [edi]
mov esi, dword [ecx + eax*4]
inc eax
mov dword [edi + 4], eax
jmp 0x41d4d4
mov eax, dword [edi + 0xc]
cmp ecx, eax
jne 0x41d44b
inc eax
push eax
mov ecx, edi
call fcn.0049b060
inc dword [edi + 8]
push 0x48
call fcn.004819b0
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
cmp esi, ebx
je 0x41d4bf
mov byte [esp + 0x108], 0x17
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKINDEX.0
call fcn.004bdb50
mov edx, dword [0x526210]
mov ecx, dword [0x526214]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, 0x51f6e0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x14], 0xe10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], ebx
jmp 0x41d4c1
xor esi, esi
mov byte [esp + 0x108], 0x14
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [eax + edx*4], esi
inc dword [edi + 4]
cmp dword [esp + 0x30], esi
je 0x41d4ee
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.0042d6e0
mov byte [esp + 0x108], 4
cmp dword [esp + 0x94], 0x10
jb 0x41d510
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00481954
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
inc ecx
mov byte [esp + 0x80], bl
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x41d215
mov edi, vtable.tpsp::TASKLIST.0
mov dword [esp + 0x40], edi
mov byte [esp + 0x108], 0x19
xor esi, esi
cmp dword [esp + 0x50], ebx
jle 0x41d571
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + esi*4]
cmp ecx, ebx
je 0x41d56a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
inc esi
cmp esi, dword [esp + 0x50]
jl 0x41d557
mov eax, dword [esp + 0x48]
push eax
call fcn.0048280a
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x108], 0x18
call fcn.004bdf00
lea ecx, [esp + 0x40]
mov byte [esp + 0x108], 1
call fcn.0049b8d0
mov dword [esp + 0x60], edi
mov dword [esp + 0x108], 0x1b
xor esi, esi
cmp dword [esp + 0x70], ebx
jle 0x41d5d1
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
je 0x41d5ca
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc esi
cmp esi, dword [esp + 0x70]
jl 0x41d5b7
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0048280a
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0x108], 0x1a
call fcn.004bdf00
lea ecx, [esp + 0x60]
mov dword [esp + 0x108], 0xffffffff
call fcn.0049b8d0
xor eax, eax
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret 4