Function at 0xbaf050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xc7f46d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0xcaf584]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0xcaf584]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], esi
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x78], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], vtable.tpsp::TASKLIST.0
call fcn.00c4e720
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x78], 1
mov eax, dword [esi + 0x48]
mov dword [esp + 0x18], edi
test eax, eax
jle 0xbaf23c
cmp edi, eax
jl 0xbaf118
push 0x338
push str.D:workTpsp
push 3
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e], bl
call fcn.00c2b6d0
mov byte [esp + 0x78], 2
or ebx, 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.00c2b9c0
push eax
lea ecx, [esp + 0x16]
call fcn.00c2bc10
mov dword [esp + 0x78], 1
test bl, 1
je 0xbaf131
lea ecx, [esp + 0x40]
and ebx, 0xfffffffe
call fcn.00c2b700
mov eax, dword [esi + 0x44]
mov eax, dword [eax + edi*4]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x10], ecx
je 0xbaf22e
cmp edi, dword [esi + 0x48]
jl 0xbaf184
push 0x338
push str.D:workTpsp
push 3
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1f], 0
call fcn.00c2b6d0
mov byte [esp + 0x78], 3
or ebx, 2
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x18], ebx
call fcn.00c2b9c0
push eax
lea ecx, [esp + 0x17]
call fcn.00c2bc10
mov dword [esp + 0x78], 1
test bl, 2
je 0xbaf19d
lea ecx, [esp + 0x40]
and ebx, 0xfffffffd
call fcn.00c2b700
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x44]
mov edi, dword [edx + edi*4]
cmp ecx, eax
jge 0xbaf1bd
mov eax, dword [esp + 0x28]
mov esi, dword [eax + ecx*4]
inc ecx
mov dword [esp + 0x2c], ecx
jmp 0xbaf210
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jne 0xbaf1d0
inc ecx
push ecx
lea ecx, [esp + 0x2c]
call fcn.00c2bf50
mov esi, 1
add dword [esp + 0x30], esi
push 0x4c
call fcn.00c12640
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 4
test eax, eax
je 0xbaf1f8
push eax
call fcn.00bbcce0
jmp 0xbaf1fa
xor eax, eax
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [edx + ecx*4], eax
add dword [esp + 0x2c], esi
mov esi, eax
cmp edi, esi
je 0xbaf226
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov edx, edi
mov ecx, esi
call fcn.00bbe7d0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esi + 0x48]
jl 0xbaf118
add esi, 0x3c
lea eax, [esp + 0x20]
cmp eax, esi
je 0xbaf27f
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov dword [esp + 0x78], 1
test bl, 4
je 0xbaf266
lea ecx, [esp + 0x40]
call fcn.00c2b700
lea edi, [esi + 8]
lea ecx, [esp + 0x28]
call fcn.00bd39e0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 4]
call fcn.00c4ef80
mov dword [esp + 0x20], vtable.tpsp::TASKLIST.0
xor edi, edi
mov dword [esp + 0x78], 7
cmp dword [esp + 0x30], edi
jle 0xbaf2b1
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0xbaf2aa
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
inc edi
cmp edi, dword [esp + 0x30]
jl 0xbaf297
mov eax, dword [esp + 0x28]
push eax
call fcn.00c13498
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 6
call fcn.00c4ead0
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.00c2c7c0
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00c12239
mov esp, ebp
pop ebp
ret 4