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

Disassembly:
sub esp, 0x1b0
push ebx
mov ebx, dword [esp + 0x1b8]
push esi
mov esi, dword [esp + 0x1c0]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
push esi
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.005fb130
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x5fd0fc
cmp eax, 0x82010418
mov eax, dword [0x726294]
jne 0x5fd038
cmp eax, edi
je 0x5fd0ee
cmp dword [eax + 0x5c], edi
je 0x5fcf94
mov edx, dword [eax + 0x5c]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fcf94
cmp ecx, 0x320
jl 0x5fd0ee
cmp dword [eax + 0x58], edi
je 0x5fcfaf
mov ecx, dword [eax + 0x58]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fcfaf
cmp ecx, 0x320
jg 0x5fd0ee
push edi
push edi
push 0x320
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd0ee
mov ecx, dword [0x726294]
push str.no_pkg_in_the_channel
lea eax, [esp + 0xa0]
push eax
lea edx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x5c], 0x2ec
mov dword [esp + 0x60], str.tbus_get_channel_pkgv
mov dword [esp + 0x64], edi
mov dword [esp + 0xa8], 0x320
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], edx
call fcn.006139e0
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x1b0
ret
cmp eax, edi
je 0x5fd0ee
cmp dword [eax + 0x5c], edi
je 0x5fd05b
mov edx, dword [eax + 0x5c]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fd05b
cmp ecx, 0x12c
jl 0x5fd0ee
cmp dword [eax + 0x58], edi
je 0x5fd072
mov ecx, dword [eax + 0x58]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fd072
cmp ecx, 0x12c
jg 0x5fd0ee
push edi
push edi
push 0x12c
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd0ee
mov eax, dword [esp + 0xc]
push eax
lea edx, [esp + 0x40]
push str.failed_to_peek_pkg_iRet__x
lea ecx, [esp + 0xec]
mov dword [esp + 0xf8], edx
mov edx, dword [0x726294]
push ecx
push edx
mov dword [esp + 0x4c], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x50], 0x2ef
mov dword [esp + 0x54], str.tbus_get_channel_pkgv
mov dword [esp + 0x58], edi
mov dword [esp + 0xf4], 0x12c
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], edi
mov dword [esp + 0x104], edi
call fcn.006139e0
add esp, 0x10
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x1b0
ret
mov eax, dword [esp + 0x1cc]
push ebp
mov ebp, dword [esp + 0x14]
cmp dword [eax], ebp
jae 0x5fd1f4
mov eax, dword [0x726294]
cmp eax, edi
je 0x5fd1e4
cmp dword [eax + 0x5c], edi
je 0x5fd138
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fd138
cmp ecx, 0x12c
jl 0x5fd1e4
cmp dword [eax + 0x58], edi
je 0x5fd153
mov edx, dword [eax + 0x58]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fd153
cmp ecx, 0x12c
jg 0x5fd1e4
push edi
push edi
push 0x12c
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd1e4
mov ecx, dword [esp + 0x1d0]
mov edx, dword [ecx]
mov ecx, dword [0x726294]
push ebp
push edx
lea eax, [esp + 0x88]
mov dword [esp + 0x18c], eax
push str.the_size__u__of_buffer_to_recv_data_is_less_than_the_length__u__of_data
lea eax, [esp + 0x184]
push eax
push ecx
mov dword [esp + 0x94], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x98], 0x2f8
mov dword [esp + 0x9c], str.tbus_get_channel_pkgv
mov dword [esp + 0xa0], edi
mov dword [esp + 0x18c], 0x12c
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x1a4], edi
mov dword [esp + 0x19c], edi
call fcn.006139e0
add esp, 0x14
pop ebp
pop edi
pop esi
mov eax, 0x8201041a
pop ebx
add esp, 0x1b0
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1cc]
push ebp
push edx
push eax
call fcn.00469cf0
mov ecx, dword [esp + 0x1dc]
mov dword [ecx], ebp
movzx ecx, byte [esi + 1]
mov edx, dword [ebx + 4]
add ecx, dword [esi + 4]
mov eax, dword [ebx + 0x10]
shl edx, 8
lea esi, [edx + eax + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x1c], ecx
cmp edx, eax
je 0x5fd671
mov eax, dword [0x726294]
cmp eax, edi
je 0x5fd308
cmp dword [eax + 0x5c], edi
je 0x5fd261
mov edx, dword [eax + 0x5c]
mov edx, dword [edx]
cmp edx, 0xffffffff
je 0x5fd261
cmp edx, 0x320
jl 0x5fd308
cmp dword [eax + 0x58], edi
je 0x5fd27c
mov edx, dword [eax + 0x58]
mov edx, dword [edx]
cmp edx, 0xffffffff
je 0x5fd27c
cmp edx, 0x320
jg 0x5fd308
push edi
push edi
push 0x320
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd304
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov edx, dword [0x726294]
lea eax, [esp + 0x68]
mov dword [esp + 0x144], eax
mov eax, dword [esi]
push eax
push str.queue_size:_d_head:_d_tail:_d
lea ecx, [esp + 0x140]
push ecx
push edx
mov dword [esp + 0x78], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x7c], 0x302
mov dword [esp + 0x80], str.tbus_get_channel_pkgv
mov dword [esp + 0x84], edi
mov dword [esp + 0x148], 0x320
mov dword [esp + 0x15c], edi
mov dword [esp + 0x160], edi
mov dword [esp + 0x158], edi
call fcn.006139e0
add esp, 0x18
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov ebp, dword [esi + 8]
sub ebp, eax
jns 0x5fd314
add ebp, dword [esi]
mov edx, dword [ebx + 0x10]
mov ebx, dword [edx + 0x208]
mov eax, ecx
cdq
mov ecx, ebx
call fcn.00623ac0
add eax, 1
adc edx, edi
mov ecx, ebx
call fcn.00623aa0
mov ebx, eax
cmp ebp, ebx
jge 0x5fd3f2
mov eax, dword [0x726294]
cmp eax, edi
je 0x5fd669
cmp dword [eax + 0x5c], edi
je 0x5fd361
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fd361
cmp ecx, edi
jl 0x5fd669
cmp dword [eax + 0x58], edi
je 0x5fd378
mov edx, dword [eax + 0x58]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fd378
cmp ecx, edi
jg 0x5fd669
push edi
push edi
push edi
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd669
mov edx, dword [0x726294]
push ebx
push ebp
push str.data_length__d__in_queue_is_less_than_the_length__d__of_tbus_pkg
lea ecx, [esp + 0xd0]
push ecx
lea eax, [esp + 0x40]
push edx
mov dword [esp + 0x44], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x48], 0x302
mov dword [esp + 0x4c], str.tbus_get_channel_pkgv
mov dword [esp + 0x50], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], eax
call fcn.006139e0
add esp, 0x14
jmp 0x5fd669
cmp ebx, edi
jl 0x5fd4e6
cmp ebx, dword [esi]
jg 0x5fd4e6
mov eax, dword [esi + 4]
add eax, ebx
xor edx, edx
div dword [esi]
mov dword [esi + 4], edx
mov eax, dword [0x726294]
cmp eax, edi
je 0x5fd671
cmp dword [eax + 0x5c], edi
je 0x5fd436
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fd436
cmp ecx, 0x320
jl 0x5fd671
cmp dword [eax + 0x58], edi
je 0x5fd451
mov edx, dword [eax + 0x58]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fd451
cmp ecx, 0x320
jg 0x5fd671
push edi
push edi
push 0x320
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd671
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov edx, dword [0x726294]
lea eax, [esp + 0x28]
mov dword [esp + 0x120], eax
mov eax, dword [esi]
push eax
push str.queue_size:_d_head:_d_tail:_d
lea ecx, [esp + 0x11c]
push ecx
push edx
mov dword [esp + 0x38], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x3c], 0x302
mov dword [esp + 0x40], str.tbus_get_channel_pkgv
mov dword [esp + 0x44], edi
mov dword [esp + 0x124], 0x320
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov dword [esp + 0x134], edi
call fcn.006139e0
mov eax, dword [esp + 0x28]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1b0
ret
mov eax, dword [0x726294]
cmp eax, edi
je 0x5fd663
cmp dword [eax + 0x5c], edi
je 0x5fd50a
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fd50a
cmp ecx, edi
jl 0x5fd5ac
cmp dword [eax + 0x58], edi
je 0x5fd521
mov edx, dword [eax + 0x58]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fd521
cmp ecx, edi
jg 0x5fd5ac
push edi
push edi
push edi
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd5a7
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov edx, dword [0x726294]
lea eax, [esp + 0x78]
mov dword [esp + 0x168], eax
mov eax, dword [esi]
push eax
push str.queue_size:_d_head:_d_tail:_d
lea ecx, [esp + 0x164]
push ecx
push edx
mov dword [esp + 0x88], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0x8c], 0x302
mov dword [esp + 0x90], str.tbus_get_channel_pkgv
mov dword [esp + 0x94], edi
mov dword [esp + 0x16c], edi
mov dword [esp + 0x180], edi
mov dword [esp + 0x184], edi
mov dword [esp + 0x17c], edi
call fcn.006139e0
add esp, 0x18
mov eax, dword [0x726294]
cmp eax, edi
je 0x5fd663
cmp dword [eax + 0x5c], edi
je 0x5fd5cb
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x5fd5cb
cmp ecx, edi
jl 0x5fd663
cmp dword [eax + 0x58], edi
je 0x5fd5e2
mov edx, dword [eax + 0x58]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x5fd5e2
cmp ecx, edi
jg 0x5fd663
push edi
push edi
push edi
push eax
call fcn.00613390
add esp, 0x10
test eax, eax
je 0x5fd663
mov ecx, dword [esi]
push ecx
push ebx
lea eax, [esp + 0x98]
push str.invalid_pkg_length__d__in_queue__its_should_be_bigger_than_0_and_less_than_queuesize__d__so_clear_remain_data
lea edx, [esp + 0x1a8]
mov dword [esp + 0x1b4], eax
mov eax, dword [0x726294]
push edx
push eax
mov dword [esp + 0xa4], str.lib_src_tbus_tbus_channel.c
mov dword [esp + 0xa8], 0x302
mov dword [esp + 0xac], str.tbus_get_channel_pkgv
mov dword [esp + 0xb0], edi
mov dword [esp + 0x1b0], edi
mov dword [esp + 0x1c4], edi
mov dword [esp + 0x1c8], edi
mov dword [esp + 0x1c0], edi
call fcn.006139e0
add esp, 0x14
mov ecx, dword [esi + 8]
mov dword [esi + 4], ecx
mov dword [esp + 0x10], 0x82010419
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1b0
ret