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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x34], eax
mov ebx, edx
call fcn.0042091d
mov dword [ebp - 0x38], eax
test ebx, ebx
je 0x4212aa
cmp dword [ebx + 0x10], 0
je 0x4213ce
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebx + 0x44], 0
je 0x42118a
call fcn.0042091d
mov esi, eax
xor edi, edi
jmp 0x421190
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
xor edx, edx
sub eax, dword [ebx + 0x34]
sbb edx, 0
add esi, eax
adc edi, edx
mov ecx, dword [ebp - 0x30]
imul ecx, edi
mov edx, dword [ebp - 0x2c]
imul edx, esi
add ecx, edx
mov eax, dword [ebp - 0x30]
mul esi
add edx, ecx
mov dword [esp + 8], 0x3e8
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005a82a0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
add esi, eax
adc edi, edx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, dword [ebx]
call fcn.0059a12f
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, dword [ecx + 0x10]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], ecx
movzx edx, word [ebx + 8]
mov dword [ebp - 0x30], edx
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Stream__d:_Sending_carousel_at_TS__I64d___d_bytes_n
mov dword [esp], eax
call fcn.005adc24
cmp dword [ebx + 4], 0
je 0x4213ce
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x30], edx
call fcn.0042091d
mov ecx, dword [ebx]
add eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x34]
mov edx, dword [ebp - 0x30]
imul eax, edx
mov ebx, 0x3e8
xor edx, edx
div ebx
add esi, eax
mov eax, dword [ecx + 4]
mov dword [eax + 0x78], esi
mov eax, dword [ecx + 4]
xor edx, edx
mov dword [eax + 0x8c], edx
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [eax + 0x90], ebx
mov eax, dword [ecx + 4]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0057d954
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
call fcn.00425f4e
mov ebx, eax
test eax, eax
je 0x4213ce
cmp dword [ebx + 0x10], 0
je 0x4212af
mov esi, dword [ebx + 0x20]
mov edi, dword [ebx + 0x24]
cmp dword [ebx + 0x44], 0
je 0x4212fe
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x30], edx
call fcn.0042091d
add eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x34]
mov edx, dword [ebp - 0x30]
imul eax, edx
mov ecx, 0x3e8
xor edx, edx
div ecx
add esi, eax
adc edi, 0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, dword [ebx]
call fcn.0059a12f
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, dword [ecx + 0x10]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x40], ecx
movzx edx, word [ebx + 8]
mov dword [ebp - 0x30], edx
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Stream__d:_Sending_carousel_at_TS__I64d_t___d_bytes_n
mov dword [esp], eax
call fcn.005adc24
cmp dword [ebx + 4], 0
je 0x4212af
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x30], edx
call fcn.0042091d
mov ecx, dword [ebx]
add eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x34]
mov edx, dword [ebp - 0x30]
imul eax, edx
mov ebx, 0x3e8
xor edx, edx
div ebx
add esi, eax
mov eax, dword [ecx + 4]
mov dword [eax + 0x78], esi
mov eax, dword [ecx + 4]
xor edx, edx
mov dword [eax + 0x8c], edx
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [eax + 0x90], ebx
mov eax, dword [ecx + 4]
call fcn.0057d954
jmp 0x4212af
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret