Function at 0x408240
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 edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
cmp dword [edi + 0x40], 2
jne 0x408415
mov dword [edi + 0x40], 2
cmp dword [edi], 0
jne 0x40840d
cmp dword [ebx + 0x138], 4
lea esi, [edi + 4]
lea edx, [ebx + 0xc8]
mov dword [esp + 0x1c], esi
jne 0x40859c
cmp dword [ebx + 0x174], 0xfffffef7
jae 0x40859c
mov eax, dword [edi + 4]
mov byte [esp + 0x68], 4
lea ebx, [esp + 0x68]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0xa0], eax
movzx eax, byte [edi + 0x3c]
mov byte [esp + 0xa4], al
push ebx
push edx
call fcn.00433070
add esp, 8
cmp al, 0xc
jne 0x4088e2
mov eax, dword [0x69b710]
mov eax, dword [eax]
test eax, eax
je 0x4086c5
movzx eax, byte [esi + 0x38]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov byte [esp + 4], al
mov eax, dword [esi + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x30]
mov esi, dword [esi + 0x34]
mov dword [edi], 1
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], ebx
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
movzx ecx, byte [esp + 4]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], edx
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], edx
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], edx
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], edx
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], esi
mov esi, dword [ebp + 8]
mov byte [edi + 0x3c], cl
mov byte [esi], 3
jmp 0x408822
cmp dword [ebx + 0x138], 4
lea eax, [ebx + 0xc8]
jne 0x40850d
cmp dword [ebx + 0x174], 0xfffffef7
jae 0x40850d
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], 4
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
push ecx
mov dword [esp + 8], eax
push eax
call fcn.00433070
add esp, 8
cmp al, 0xc
jne 0x4088cd
mov eax, dword [0x69b710]
mov eax, dword [eax]
test eax, eax
je 0x4085ce
lea esi, [edi + 0x40]
push esi
push dword [ebp + 0x18]
lea eax, [esp + 0x70]
push eax
call fcn.00464b90
add esp, 0xc
movzx eax, byte [esp + 0x68]
cmp al, 3
jne 0x408571
cmp dword [esi], 0
je 0x40887c
mov edx, dword [esp + 4]
mov eax, dword [edi + 0x44]
mov ecx, dword [edx]
test ecx, ecx
je 0x40882c
cmp ecx, 1
jne 0x408850
cmp dword [ebx + 0xcc], eax
jbe 0x40886a
lea ecx, [ebx + 0xcc]
jmp 0x408848
lea edx, [esp + 0x68]
push ecx
push eax
push edx
mov ebx, eax
call fcn.004351d0
add esp, 0xc
movzx eax, byte [esp + 0x68]
cmp eax, 4
je 0x40869d
cmp eax, 5
je 0x4086bd
movzx edx, word [esp + 0x6e]
mov edi, dword [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
mov word [esp + 0xe], dx
mov dword [esp + 0xa], edi
mov byte [esp + 8], al
lea eax, [esp + 8]
mov byte [esp + 9], cl
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.005059a0
add esp, 8
movsd xmm0, qword [esp + 0x78]
jmp 0x408808
movsd xmm0, qword [esp + 0x78]
mov esi, dword [ebp + 8]
movsd xmm2, qword [esp + 0x69]
movsd xmm1, qword [esp + 0x71]
movsd qword [esi + 0x10], xmm0
movsd qword [esi + 9], xmm1
movsd qword [esi + 1], xmm2
mov byte [esi], al
jmp 0x408822
lea eax, [esp + 0x68]
push ecx
push edx
push eax
mov dword [esp + 0x10], edx
call fcn.004351d0
add esp, 0xc
movzx eax, byte [esp + 0x68]
cmp eax, 4
je 0x4087a8
cmp eax, 5
jne 0x4087ce
mov esi, dword [ebp + 8]
jmp 0x4086bd
mov esi, dword [0x69aae4]
movzx eax, byte [esi + 8]
test al, al
je 0x4084b2
movzx ecx, al
cmp ecx, 1
je 0x4085f3
cmp ecx, 2
jne 0x4088a1
mov al, 2
movzx eax, al
push eax
push dword [esi]
call fcn.005313d0
add esp, 8
test al, al
je 0x4084b2
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x408918
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x68], 0x6021cc
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0x60216c
mov dword [esp + 0x74], 0
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
lea edx, [esp + 8]
lea esi, [esp + 0x20]
movlps qword [esp + 0x10], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x601f9c
push ecx
push eax
call fcn.00531b00
add esp, 8
jmp 0x4084b2
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x138], 4
jne 0x4086bd
cmp dword [ecx + 0x174], 0xfffffef7
mov eax, ebx
mov ebx, ecx
jb 0x408438
mov byte [esi], 4
jmp 0x408822
mov ebx, dword [0x69aae8]
movzx eax, byte [ebx + 8]
test al, al
je 0x408351
movzx ecx, al
cmp ecx, 1
je 0x4086ea
cmp ecx, 2
jne 0x4088b7
mov al, 2
movzx eax, al
push eax
push dword [ebx]
call fcn.005313d0
add esp, 8
test al, al
je 0x408351
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x40891f
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov dword [esp + 0x68], 0x6022d4
mov dword [esp + 0x6c], 1
lea ebx, [esp + 0x20]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x78], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
lea edx, [esp + 0x1c]
movlps qword [esp + 0x10], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x64], 0x4444d0
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], 0x601f9c
push ecx
push eax
call fcn.00531b00
add esp, 8
mov esi, dword [esp + 0x1c]
jmp 0x408351
cmp dword [ebx + 0x138], 4
mov edx, dword [esp + 4]
jne 0x4085c6
cmp dword [ebx + 0x174], 0xfffffef7
jb 0x40829f
jmp 0x4085c6
movzx edx, word [esp + 0x6e]
mov edi, dword [esp + 0x6a]
movzx ecx, byte [esp + 0x69]
mov word [esp + 0xe], dx
mov dword [esp + 0xa], edi
mov byte [esp + 8], al
lea eax, [esp + 8]
mov byte [esp + 9], cl
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.005059a0
add esp, 8
movsd xmm0, qword [esp + 0x78]
mov esi, dword [ebp + 8]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0xcc]
lea ecx, [ebx + 0xcc]
cmp edx, eax
jae 0x408844
cmp edx, dword [ebx + 0xfc]
jbe 0x40886a
mov edx, dword [esp + 4]
mov dword [edx], 0
jmp 0x40887a
cmp dword [ebx + 0xfc], eax
je 0x40887c
mov dword [ebx + 0xc8], 0
lea ecx, [ebx + 0xcc]
jmp 0x40887a
mov dword [ebx + 0xc8], 1
lea ecx, [ebx + 0xd0]
mov dword [ecx], eax
cmp dword [edi + 0x60], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
je 0x408265
mov eax, dword [edi + 0x64]
cmp eax, 0x1000000
jae 0x408902
mov dword [ebx + 0x188], eax
jmp 0x408265
push esi
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x4085f3
jmp 0x4084b2
push ebx
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x4086ea
jmp 0x408351
mov byte [esp + 0x68], al
push 0x602190
push 0x602440
lea eax, [esp + 0x70]
push eax
jmp 0x4088f1
mov byte [esp + 0x68], al
push 0x60228c
push 0x602440
push ebx
push 0x16
push str.invalid_settings_frame
call fcn.005a0ed0
add esp, 0x14
ud2
push 0x60227c
push 0x3b
push str.assertion_failed:_val___frame::MAX_MAX_FRAME_SIZE_as_usizeC:UsersLitch1.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8h2_0.3.21_srccodec_framed_write.rs
call fcn.005a0b60
add esp, 0xc
ud2
push 0x6021a0
jmp 0x408924
push 0x60229c
push 0x22
push 0x601edc
call fcn.005a0a40
add esp, 0xc
ud2