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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov esi, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov eax, dword [edi + 0xc]
call fcn.00425f4e
mov ebx, eax
test eax, eax
je 0x4215ec
cmp word [ebx + 8], si
jne 0x421408
cmp dword [edi + 8], 0
je 0x4214bd
cmp dword [ebx + 0x38], 0
je 0x4214c5
mov eax, dword [ebp - 0x2c]
cmp dword [ebx + 0x14], eax
jae 0x421457
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x14], eax
mov edi, dword [ebx + 0xc]
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
call fcn.0042091d
mov dword [ebx + 0x28], eax
xor esi, esi
mov dword [ebx + 0x2c], esi
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [ebp - 0x2c]
mov dword [ebp + 0x1c], edi
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], ebx
movzx edx, word [ebp - 0x3c]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], str._nStream__d:_Storing_new_carousel_TS__I64d___d_bytes_n
mov dword [ebp + 8], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005adc24
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x30], eax
jmp 0x4214cc
mov dword [ebp - 0x30], 1
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call fcn.0042091d
mov ecx, eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
sub eax, dword [ebx + 0x34]
sbb edx, 0
add eax, ecx
adc edx, 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x4c]
imul ecx, eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
imul edx, eax
add ecx, edx
mul dword [ebp - 0x38]
add edx, ecx
mov dword [esp + 8], 0x3e8
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005a82a0
add eax, dword [ebp - 0x48]
adc edx, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov esi, dword [ebx + 0x58]
test esi, esi
jne 0x421545
xor eax, eax
cmp dword [edi + 0x14], 0
setne al
mov esi, eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx]
call fcn.0059a12f
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 0x1c], esi
mov edi, dword [ebp - 0x30]
mov dword [esp + 0x18], edi
mov esi, dword [ebp - 0x2c]
mov dword [esp + 0x14], esi
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
movzx edx, word [ebp - 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Stream__d:_Sending_update_at_TS__I64d___d_bytes___RAP__d___critical__d_n
mov dword [esp], eax
call fcn.005adc24
xor esi, esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x50], esi
cmp dword [ebx + 4], 0
je 0x4215ec
mov eax, dword [ebx]
mov edx, dword [eax + 4]
xor ecx, ecx
mov dword [edx + 0x8c], ecx
mov edx, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x90], ebx
mov eax, dword [eax + 4]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0057d954
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret