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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eee22
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x51d584]
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 + 0x18], ebx
mov dword [esp + 0x78], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], vtable.tpsp::TASKITEMS.0
call fcn.004bccf0
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 dword [esp + 0x14], edi
cmp dword [esi + 0x68], ebx
jle 0x41d638
cmp edi, dword [esi + 0x68]
jl 0x41d537
push 0x338
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1f], bl
call fcn.00499b70
mov byte [esp + 0x78], 2
or ebx, 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x1c], ebx
call fcn.00499e60
push eax
lea ecx, [esp + 0x17]
call fcn.0049a0b0
mov dword [esp + 0x78], 1
test bl, 1
je 0x41d550
lea ecx, [esp + 0x40]
and ebx, 0xfffffffe
call fcn.00499ba0
mov eax, dword [esi + 0x64]
mov eax, dword [eax + edi*4]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x30], ecx
je 0x41d62a
cmp edi, dword [esi + 0x68]
jl 0x41d5a3
push 0x338
push str.D:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e], 0
call fcn.00499b70
mov byte [esp + 0x78], 3
or ebx, 2
push str.CHECK_failed:__index_____size___:
mov ecx, eax
mov dword [esp + 0x1c], ebx
call fcn.00499e60
push eax
lea ecx, [esp + 0x16]
call fcn.0049a0b0
mov dword [esp + 0x78], 1
test bl, 2
je 0x41d5bc
lea ecx, [esp + 0x40]
and ebx, 0xfffffffd
call fcn.00499ba0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x64]
mov edi, dword [edx + edi*4]
cmp ecx, eax
jge 0x41d5dc
mov eax, dword [esp + 0x28]
mov esi, dword [eax + ecx*4]
inc ecx
mov dword [esp + 0x2c], ecx
jmp 0x41d60e
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jne 0x41d5ef
inc ecx
push ecx
lea ecx, [esp + 0x2c]
call fcn.0049a3f0
mov esi, 1
add dword [esp + 0x30], esi
call fcn.00421220
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 0x41d622
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov ecx, edi
call fcn.0042d450
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [esi + 0x68]
jl 0x41d537
add esi, 0x5c
lea eax, [esp + 0x20]
cmp eax, esi
je 0x41d67b
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov dword [esp + 0x78], 1
test bl, 4
je 0x41d662
lea ecx, [esp + 0x40]
call fcn.00499ba0
lea edi, [esi + 8]
lea ecx, [esp + 0x28]
call fcn.00441a70
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 4]
call fcn.004bd550
mov dword [esp + 0x20], vtable.tpsp::TASKITEMS.0
xor edi, edi
mov dword [esp + 0x78], 6
cmp dword [esp + 0x30], edi
jle 0x41d6ad
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x41d6a6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
inc edi
cmp edi, dword [esp + 0x30]
jl 0x41d693
mov eax, dword [esp + 0x28]
push eax
call fcn.00481b34
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 5
call fcn.004bd0a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.0049ac60
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.004809b9
mov esp, ebp
pop ebp
ret 4