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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov esi, ecx
lea eax, [esp + 0x74]
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
cmp ebx, 8
jb 0x4068b4
mov ecx, 0x6572662d
xor ecx, dword [edi + ebx - 8]
mov edx, 0x64736265
xor edx, dword [edi + ebx - 4]
or edx, ecx
je 0x40695b
mov dword [esp], 0
movsd xmm0, qword [eax]
movsd qword [esp + 0x3c], xmm0
sub esp, 8
movsd qword [esp], xmm0
mov ecx, 0x42ca48
call fcn.00422128
cmp eax, 0xffffffff
je 0x40691f
cmp eax, dword [0x42ca4c]
je 0x40691f
mov ecx, dword [0x42ca48]
mov eax, dword [ecx + eax*4]
movzx ecx, word [eax + 4]
movzx edx, byte [eax + 6]
cmp byte [esp], 0
mov ebx, 9
cmove ebx, edx
movzx eax, word [eax + 7]
and byte [esi + 0xc], 0xfe
mov dword [esi], 1
mov word [esi + 4], cx
mov byte [esi + 6], bl
mov word [esi + 7], ax
jmp 0x406ac4
call fcn.004221a6
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp], eax
je 0x406972
cmp ebx, 0xfffffff0
jae 0x406acc
cmp ebx, 0xb
jae 0x40698c
mov eax, ebx
add al, bl
mov byte [esp + 4], al
lea ebp, [esp + 5]
test ebx, ebx
jne 0x4069ae
mov byte [ebp + ebx], 0
test byte [esp + 4], 1
je 0x4069c5
jmp 0x4069cb
lea ecx, [ebx - 8]
cmp ebx, ecx
cmovb ecx, ebx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov cl, 1
mov dword [esp], ecx
jmp 0x4068bb
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
jmp 0x4069c5
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov dword [esp + 0xc], eax
add esi, 2
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
push ebx
push edi
push ebp
call sub.msvcrt.dll_memmove
add esp, 0xc
mov byte [ebp + ebx], 0
test byte [esp + 4], 1
jne 0x4069cb
lea ebp, [esp + 5]
jmp 0x4069cf
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
mov byte [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 1
mov eax, dword [sym.imp.libLLVM_17.dll_vtable_for_llvm::raw_string_ostream]
add eax, 8
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x5c], eax
lea ebx, [esp + 0x3c]
mov ecx, ebx
push 0
push 0
push 0
call fcn.00422002
mov dword [esp + 0x2c], str.invalid_output_format:__s
mov dword [esp + 0x28], 0x4288b8
mov dword [esp + 0x30], ebp
lea edi, [esp + 0x28]
mov ecx, ebx
push edi
call fcn.0042201a
mov esi, dword [esp + 0x5c]
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov word [esp + 0x38], 0x104
mov dword [esp + 0x28], esi
mov eax, dword [esp]
mov dword [esp + 0x24], eax
mov eax, 0x16
mov dword [esp + 0x20], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
mov dword [esp], edi
mov ecx, ebp
call fcn.00421ff0
mov ecx, ebx
call fcn.00422014
test byte [esp + 0x14], 1
je 0x406aa7
push dword [esp + 0x1c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x10]
or byte [eax + 0xc], 1
mov dword [eax], ebp
test byte [esp + 4], 1
je 0x406ac4
push dword [esp + 0xc]
call sub.libc.dll_operator_delete_void_
add esp, 4
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 4]
call fcn.004110e0
int3