Function at 0x46c920
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
lea ebx, [eax + 0x338]
mov eax, dword [0x6e0f10]
test eax, eax
jne 0x46ca7a
cmp dword [edi + 0x24], eax
jne 0x46ca7a
mov dword [edi + 0x1c], 1
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 4]
je 0x46cc18
mov esi, dword [sym.imp.PAL.dll_PalDebugPrintf]
test eax, eax
jne 0x46ca7a
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x46c987
cmp ecx, dword [edi + eax*4 + 0x24]
je 0x46cc18
mov ecx, dword [ebx + 0x55e5c]
mov dword [ebx + 0x55f00], ecx
cmp dword [ebx + 0x55f28], 0
je 0x46c9b1
mov eax, dword [ebx + 0x55f2c]
cmp eax, ecx
ja 0x46c9b1
add eax, 0xc
cmp eax, ecx
ja 0x46ca86
mov ecx, dword [edi + 8]
mov eax, dword [edi]
mov dword [edi + 0x20], 0
mov edx, dword [ecx + eax]
mov eax, edx
add ecx, 4
shr eax, 0x10
mov dword [edi + 8], ecx
mov dword [edi + 0x14], edx
cmp eax, 1
jne 0x46c9f6
movzx eax, dx
push ebx
mov eax, dword [eax*4 + 0x4d9010]
call eax
add esp, 4
test eax, eax
jne 0x46ca1a
push dword [edi + 0x14]
push dword [edi + 8]
push 0x4c8ad4
push eax
push eax
jmp 0x46ca15
push edx
push ecx
push str.__d_
push 0
push 0
call esi
add esp, 0x14
push dword [edi + 0x14]
push dword [edi + 8]
push str.__d_
push 0
push 0xa
call esi
add esp, 0x14
cmp dword [ebx + 0x55f20], 0
mov eax, 0x20
mov esi, 0x10
cmove esi, eax
call fcn.0046d3f0
test esi, eax
jne 0x46ca43
cmp dword [edi + 0x20], 0
jne 0x46cc18
jmp 0x46ca6d
mov eax, dword [0x6e0f10]
test eax, eax
je 0x46c959
push 0x4c8b1c
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0xc
push 0x4c8b1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x6e0f10]
test eax, eax
je 0x46c959
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push dword [ebx + 0x55f04]
call dword [sym.imp.PAL.dll_PalListGetDataCount]
push dword [ebx + 0x55e5c]
push dword [ebx + 0x55f2c]
push str.history_skip_end___x:_x_
push 0
push 0xa
call esi
add esp, 0x1c
mov ecx, ebx
call fcn.00457f10
mov esi, dword [sym.imp.PAL.dll_PalTaskGetTaskData]
mov dword [ebx + 0x2280], 0
cmp dword [ebx + 0x226c], 0
jne 0x46caf6
mov eax, dword [ebx + 0x55e5c]
push 0
mov dword [ebx + 0x224c], eax
mov dword [ebx + 0x2274], 0
call esi
add esp, 4
lea ecx, [eax + 0x338]
call fcn.0044d490
mov eax, dword [ebx + 0x15f58]
mov dword [ebp - 8], eax
test eax, eax
je 0x46cbb5
push 0
call esi
add esp, 4
lea esi, [eax + 0x338]
mov ecx, esi
call fcn.0046d530
mov ecx, dword [esi + 0x2274]
mov dword [esi + 0x2278], ecx
mov ecx, esi
mov dword [esi + 0x2274], 0
call fcn.0044ccc0
mov dword [esi + 0x2268], 1
call dword [sym.imp.PAL.dll_PaltimeGetTime]
mov dword [esi + 0x328c], eax
mov dword [esi + 0x3290], 0x64
mov eax, dword [esi + 0x55e5c]
push 1
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
test eax, eax
je 0x46cb92
mov ecx, dword [ebp - 4]
push 2
push eax
mov dword [eax], ecx
mov dword [eax + 4], 0
push dword [esi + 0x55f04]
call dword [sym.imp.PAL.dll_PalListPush]
add esp, 0xc
jmp 0x46cba6
push dword [esi + 0x55e5c]
push str.__d_memory_allocate_error_DataEntry
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 8
mov eax, dword [esi + 0x55e60]
add eax, dword [ebp - 8]
mov dword [esi + 0x55e5c], eax
mov dword [ebx + 0x55f28], 0
call fcn.0046c3d0
call dword [sym.imp.PAL.dll_PaltimeGetTime]
mov dword [ebx + 0x328c], eax
mov dword [ebx + 0x3290], 0x64
cmp dword [ebx + 0x2264], 0xffffffff
jne 0x46cbef
mov dword [ebx + 0x55e74], 1
jmp 0x46cc18
push 0
push dword [ebx + 0x55e5c]
mov edx, 2
mov ecx, ebx
call fcn.0046dcf0
mov eax, dword [ebx + 0x55e60]
add esp, 8
add eax, dword [ebx + 0x2264]
mov dword [ebx + 0x55e5c], eax
cmp dword [edi + 0x24], 0
mov dword [edi + 0x1c], 0
je 0x46ca7a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret