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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x40], 2
jne 0x1003d9b5
mov dword [ebx + 0x40], 2
cmp dword [ebx], 0
je 0x1003da2a
mov byte [edi], 3
jmp 0x1003dcd7
cmp dword [esi + 0x140], 4
lea edx, [esi + 0xd0]
jne 0x1003d9dc
mov eax, dword [esi + 0x180]
sub eax, dword [esi + 0x17c]
cmp eax, dword [esi + 0x198]
jae 0x1003dade
mov ebx, edx
lea ecx, [esp + 0x68]
push dword [ebp + 0x10]
call fcn.10082940
add esp, 4
movzx eax, byte [esp + 0x68]
cmp eax, 4
je 0x1003dab7
cmp eax, 5
je 0x1003dcd4
movzx edx, word [esp + 0x6e]
mov esi, dword [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
mov word [esp + 0xe], dx
mov dword [esp + 0xa], esi
mov byte [esp + 8], al
lea eax, [esp + 8]
mov byte [esp + 9], cl
push eax
jmp 0x1003daa9
cmp dword [esi + 0x140], 4
lea edi, [ebx + 4]
lea edx, [esi + 0xd0]
mov dword [esp + 0x1c], edi
jne 0x1003da5c
mov ecx, eax
mov eax, dword [esi + 0x180]
sub eax, dword [esi + 0x17c]
cmp eax, dword [esi + 0x198]
mov eax, ecx
jae 0x1003dce1
mov esi, edx
lea ecx, [esp + 0x68]
push eax
call fcn.10082940
add esp, 4
movzx eax, byte [esp + 0x68]
cmp eax, 4
je 0x1003dcaf
cmp eax, 5
je 0x1003dcd1
movzx edx, word [esp + 0x6e]
mov esi, dword [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
mov word [esp + 0xe], dx
mov dword [esp + 0xa], esi
mov byte [esp + 8], al
lea eax, [esp + 8]
mov byte [esp + 9], cl
push eax
mov edi, dword [ebp + 8]
push edi
call fcn.1012c1d0
add esp, 8
jmp 0x1003dcd7
cmp dword [esi + 0x140], 4
jne 0x1003dcd4
mov eax, dword [esi + 0x180]
mov edx, ebx
sub eax, dword [esi + 0x17c]
cmp eax, dword [esi + 0x198]
jb 0x1003dcd4
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x9c], 0
mov byte [esp + 0xa4], 1
mov byte [esp + 0x68], 4
push eax
mov ebx, edx
push edx
call fcn.10080a10
add esp, 8
cmp al, 0xc
jne 0x1003dfea
mov eax, dword [0x1027132c]
mov eax, dword [eax]
test eax, eax
je 0x1003dbe0
mov eax, dword [ebp + 0xc]
lea edi, [eax + 0x40]
push edi
push dword [ebp + 0x18]
lea eax, [esp + 0x70]
push eax
call fcn.1005f490
add esp, 0xc
movzx eax, byte [esp + 0x68]
cmp al, 3
jne 0x1003dbb5
test byte [edi], 1
je 0x1003dfa1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x44]
test ecx, ecx
je 0x1003df55
cmp ecx, 1
jne 0x1003df75
cmp dword [esi + 0xd4], eax
jbe 0x1003df8f
lea ecx, [esi + 0xd4]
mov dword [ebx], 0
jmp 0x1003df9f
movsd xmm0, qword [esp + 0x78]
mov edi, dword [ebp + 8]
movsd xmm2, qword [esp + 0x69]
movsd xmm1, qword [esp + 0x71]
movsd qword [edi + 0x10], xmm0
movsd qword [edi + 9], xmm1
movsd qword [edi + 1], xmm2
mov byte [edi], al
jmp 0x1003dcd7
mov edi, dword [0x102706d4]
movzx eax, byte [edi + 8]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x1003df37
movzx eax, al
push eax
push dword [edi]
call fcn.10149b60
add esp, 8
test al, al
je 0x1003db56
mov eax, dword [edi]
cmp dword [eax + 0x20], 0
je 0x1003e035
lea ecx, [eax + 0x1c]
mov edx, dword [ecx]
test edx, edx
je 0x1003e035
lea edi, [eax + 0x20]
mov dword [esp + 8], edx
movsd xmm0, qword [edi]
movsd qword [esp + 0xc], xmm0
mov edx, dword [edi + 8]
lea edi, [esp + 0x20]
mov dword [esp + 0x68], 0x101d683c
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 4
mov dword [esp + 0x74], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x101d633c
push ecx
push eax
call fcn.1014a450
add esp, 8
jmp 0x1003db56
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x140], 4
jne 0x1003dcd1
mov eax, dword [ecx + 0x180]
mov edx, esi
sub eax, dword [ecx + 0x17c]
cmp eax, dword [ecx + 0x198]
jae 0x1003dce1
mov edi, dword [ebp + 8]
mov byte [edi], 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 4]
lea esi, [esp + 0x68]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0xa0], eax
movzx eax, byte [ebx + 0x3c]
mov byte [esp + 0xa4], al
mov byte [esp + 0x68], 4
push esi
push edx
call fcn.10080a10
add esp, 8
cmp al, 0xc
jne 0x1003e009
mov eax, dword [0x1027132c]
mov eax, dword [eax]
test eax, eax
je 0x1003de54
movzx eax, byte [edi + 0x38]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov esi, dword [edi + 8]
mov byte [esp + 7], al
mov eax, dword [edi + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
mov dword [ebx], 1
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
movzx ecx, byte [esp + 7]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edx
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], edx
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], edx
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], edx
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edi
mov edi, dword [ebp + 8]
mov byte [ebx + 0x3c], cl
jmp 0x1003d9ad
mov esi, dword [0x102706d8]
movzx eax, byte [esi + 8]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x1003dfcc
movzx eax, al
push eax
push dword [esi]
call fcn.10149b60
add esp, 8
test al, al
je 0x1003dd93
mov eax, dword [esi]
cmp dword [eax + 0x20], 0
je 0x1003e046
lea ecx, [eax + 0x1c]
mov edx, dword [ecx]
test edx, edx
je 0x1003e046
lea edi, [eax + 0x20]
mov dword [esp + 8], edx
lea esi, [esp + 0x20]
movsd xmm0, qword [edi]
movsd qword [esp + 0xc], xmm0
mov edx, dword [edi + 8]
mov dword [esp + 0x68], 0x101d6940
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x64], 0x1003e510
mov dword [esp + 0x70], edx
lea edx, [esp + 8]
mov dword [esp + 0x74], 1
mov dword [esp + 0x20], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x101d633c
push ecx
push eax
call fcn.1014a450
add esp, 8
mov edi, dword [esp + 0x1c]
jmp 0x1003dd93
test ecx, ecx
je 0x1003db56
push edi
call fcn.101c9ee0
add esp, 4
test al, al
jne 0x1003dbf9
jmp 0x1003db56
mov edx, dword [esi + 0xd4]
lea ecx, [esi + 0xd4]
cmp edx, eax
jae 0x1003df6d
cmp edx, dword [esi + 0x104]
jbe 0x1003df8f
mov dword [ebx], 0
jmp 0x1003df9f
cmp dword [esi + 0x104], eax
je 0x1003dfa1
mov dword [esi + 0xd0], 0
lea ecx, [esi + 0xd4]
jmp 0x1003df9f
mov dword [esi + 0xd0], 1
lea ecx, [esi + 0xd8]
mov dword [ecx], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x60], 1
jne 0x1003d9a1
mov eax, dword [ebx + 0x64]
cmp eax, 0x1000000
jae 0x1003e024
mov dword [esi + 0x190], eax
mov eax, dword [ebp + 0x10]
jmp 0x1003d9a1
test ecx, ecx
je 0x1003dd93
push esi
call fcn.101c9ee0
add esp, 4
test al, al
jne 0x1003de6d
jmp 0x1003dd93
mov byte [esp + 0x68], al
push 0x101d6800
push 0x101d69f4
lea eax, [esp + 0x70]
push eax
push 0x16
push str.invalid_settings_frame
call fcn.101ccb80
mov byte [esp + 0x68], al
push 0x101d68f8
push 0x101d69f4
push esi
push 0x16
push str.invalid_settings_frame
call fcn.101ccb80
push 0x101d68e8
push 0x3b
push str.assertion_failed:_val___frame::MAX_MAX_FRAME_SIZE_as_usizeC:UsersPC_HUK.cargo_registry_srcindex.crates.io_6f17d22bba15001fh2_0.3.26_srccodec_framed_write.rs
call fcn.101cc940
push 0x101d6810
push 0x22
push 0x101d6279
call fcn.101cc830
push 0x101d6908
push 0x22
push 0x101d6279
call fcn.101cc830
int3