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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x4a0
push 0xa0
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push 0x74
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0x413754
lea edi, [eax + 0xc]
mov ecx, edi
call fcn.004119d6
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
lea eax, [esp + 0x50]
mov ecx, ebx
push 0
push eax
call fcn.00411988
mov esi, dword [esp + 0x54]
test esi, esi
je 0x406732
mov eax, 0xffffffff
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x406732
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, esi
call fcn.00411ffa
push 8
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00411964
inc dword [esi]
mov edi, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x406755
lock inc dword [eax + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 4], esi
mov dword [esp + 0x20], ebx
push 4
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov eax, dword [sym.imp.libclang_cpp.dll_vtable_for_clang::ObjectFilePCHContainerWriter]
lea ecx, [eax + 8]
mov dword [esi], ecx
mov ecx, esi
call dword [eax + 0x10]
mov dword [esp + 0x19c], edx
mov dword [esp + 0x198], eax
sub esp, 8
movsd xmm0, qword [esp + 0x1a0]
movsd qword [esp], xmm0
mov dword [esp + 0x20], edi
mov ecx, edi
call fcn.004074c0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [eax + 4], esi
test ecx, ecx
je 0x4067b7
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edx, dword [sym.imp.libclang_cpp.dll_vtable_for_clang::ObjectFilePCHContainerReader]
lea ecx, [edx + 8]
mov dword [eax], ecx
mov dword [esp + 0x1c], eax
mov ecx, eax
call dword [edx + 0x10]
mov dword [esp], edx
test edx, edx
je 0x406820
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, 0x14
mov dword [esp + 0x24], eax
shl dword [esp], 3
xor edi, edi
nop
movsd xmm0, qword [ebx + edi]
mov esi, dword [esp + 0x1c]
movsd qword [esp + 0x198], xmm0
sub esp, 8
movsd qword [esp], xmm0
mov ecx, dword [esp + 0x2c]
call fcn.004075a0
mov eax, dword [eax]
mov dword [eax + 4], esi
add edi, 8
cmp dword [esp], edi
jne 0x4067f0
mov edi, dword [esp + 0x18]
lea ecx, [edi + 0x28]
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.00407680
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ecx + edx*4], esi
inc edx
mov dword [edi + 0x2c], edx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x40685d
mov eax, dword [ecx]
call dword [eax + 4]
call sub.libLLVM_17.dll_LLVMInitializeARMTargetInfo
call sub.libLLVM_17.dll_LLVMInitializeAArch64TargetInfo
call sub.libLLVM_17.dll_LLVMInitializeX86TargetInfo
call sub.libLLVM_17.dll_LLVMInitializeARMTarget
call sub.libLLVM_17.dll_LLVMInitializeAArch64Target
call sub.libLLVM_17.dll_LLVMInitializeX86Target
call sub.libLLVM_17.dll_LLVMInitializeARMTargetMC
call sub.libLLVM_17.dll_LLVMInitializeAArch64TargetMC
call sub.libLLVM_17.dll_LLVMInitializeX86TargetMC
call sub.libLLVM_17.dll_LLVMInitializeARMAsmPrinter
call sub.libLLVM_17.dll_LLVMInitializeAArch64AsmPrinter
call sub.libLLVM_17.dll_LLVMInitializeX86AsmPrinter
call sub.libLLVM_17.dll_LLVMInitializeARMAsmParser
call sub.libLLVM_17.dll_LLVMInitializeAArch64AsmParser
call sub.libLLVM_17.dll_LLVMInitializeX86AsmParser
push pe_nt_image_headers32
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x60], xmm0
mov dword [eax + 0x74], 0
mov dword [eax + 0x70], 0
mov eax, 0xff800000
and eax, dword [esi + 4]
or eax, 0x6f0
mov dword [esi + 4], eax
movdqa xmm0, xmmword [0x413620]
movdqu xmmword [esi + 8], xmm0
mov dword [esi + 0x18], 0x32
mov dword [esi + 0x1c], 0x10
or byte [esi + 0x20], 1
mov dword [esi + 0x24], 8
mov dword [esi + 0x28], 0
mov byte [esi + 0x2c], 0
mov dword [esi], 1
push 0x48
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [sym.imp.libclang_cpp.dll_vtable_for_clang::TextDiagnosticBuffer]
add ecx, 8
mov dword [eax], ecx
pxor xmm0, xmm0
movdqu xmmword [eax + 0xc], xmm0
movdqu xmmword [eax + 0x1c], xmm0
movdqu xmmword [eax + 0x2c], xmm0
movdqu xmmword [eax + 0x38], xmm0
mov edi, dword [esp + 4]
mov dword [esp + 0x3c], edi
inc dword [edi]
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], esi
inc dword [esi]
lea esi, [esp + 0x38]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x198]
push 1
mov dword [esp + 0x48], eax
push eax
push esi
push edx
call fcn.004119a6
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4069a4
dec dword [esi]
jne 0x4069a4
mov ecx, esi
call fcn.00406560
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
lea ebx, [ebp + 8]
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x4069c3
dec dword [esi]
jne 0x4069c3
mov ecx, esi
call fcn.0041196a
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov ebx, edx
test ecx, ecx
je 0x406a46
lea eax, [edx + ecx*4]
mov dword [esp + 0x40], eax
lea esi, [ecx*4]
mov ebx, edx
mov dword [esp], ecx
mov dword [esp + 0x24], edx
jmp 0x4069f8
add ebx, 4
add esi, 0xfffffffc
je 0x406a3e
mov edi, dword [ebx]
test edi, edi
je 0x4069f0
push edi
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, 0x15
jne 0x4069f0
movdqu xmm0, xmmword [edi]
pcmpeqb xmm0, xmmword [0x413640]
movdqu xmm1, xmmword [edi + 5]
pcmpeqb xmm1, xmmword [str.nd_trip_cc1_args_Rround_trip_cc1]
pand xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x4069f0
jmp 0x406a42
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 4]
mov esi, dword [ebp + 0x10]
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
je 0x406a72
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x198]
push 0
push 2
push 0x1f1
call fcn.00411994
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 8]
lea ecx, [ebp + 8]
movsd xmm0, qword [ecx]
movsd qword [esp + 0x190], xmm0
sub esp, 0x14
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x1ac]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004119b8
add esp, 0x14
mov byte [esp], al
mov eax, dword [ebx + 8]
movzx ecx, byte [eax + 0x5b8]
test cl, 1
je 0x406b01
mov ecx, dword [eax + 0x5bc]
test ecx, ecx
jne 0x406b07
test byte [eax + 0x440], 0x20
jne 0x406b5a
mov ecx, dword [eax + 0x14]
test byte [ecx + 0x168], 1
je 0x406be8
movzx eax, byte [ecx + 0x24]
test al, 1
je 0x406b9d
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x406be8
jmp 0x406ba3
shr ecx, 1
test ecx, ecx
je 0x406ac8
mov ecx, esi
mov edi, dword [eax + 0x5b4]
mov dword [esp + 0x60], esi
test esi, esi
je 0x406b24
mov esi, ecx
push ecx
call sub.msvcrt.dll_strlen
add esp, 4
jmp 0x406b28
mov esi, ecx
xor eax, eax
mov dword [esp + 0x64], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 4], xmm0
mov dword [esp], edi
call fcn.00411d06
add esp, 0xc
mov eax, dword [ebx + 8]
mov edi, dword [esp + 4]
test byte [eax + 0x440], 0x20
je 0x406ad5
mov eax, dword [eax + 8]
test byte [eax], 1
jne 0x406b7d
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
movzx ebx, byte [esp + 8]
jmp 0x406deb
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
cmp ecx, 0xa
ja 0x406db2
lea eax, [esp + 9]
mov ebx, ecx
add bl, bl
mov byte [esp + 8], bl
jmp 0x406ddf
shr eax, 1
test eax, eax
jne 0x406be8
lea eax, [esp + 0x94]
push dword [ebp + 0x14]
push esi
push eax
call fcn.004119be
add esp, 0xc
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x14]
lea esi, [eax + 0x24]
test byte [eax + 0x24], 1
je 0x406bd1
push dword [eax + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x9c]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x94]
movsd qword [esi], xmm0
mov ecx, ebx
push 1
push 0
call fcn.0041197c
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x406d91
push eax
push 0x4072b0
call fcn.00411d00
add esp, 8
mov ecx, dword [esp + 0x44]
push dword [ebx + 0x10]
call fcn.00411a2a
cmp byte [esp], 0
je 0x406d9b
call fcn.00411d2a
test eax, eax
je 0x406c7f
mov dword [esp + 0x94], str.ExecuteCompiler
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x16c], 0x4136da
mov dword [esp + 0x170], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0x17c]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xa4]
movsd qword [esp], xmm0
call fcn.00411c34
add esp, 0x10
push ebx
call fcn.004119e2
add esp, 4
mov byte [esp], al
call fcn.00411d2a
test eax, eax
je 0x406c99
call fcn.00411bf8
call fcn.00411e92
push eax
call fcn.00411a9c
add esp, 4
call fcn.00411a96
call fcn.00411d2a
test eax, eax
je 0x406d6e
cmp dword [ebx + 0x1c], 0
je 0x40726c
mov eax, dword [ebx + 8]
movzx ecx, byte [eax + 0x5b8]
lea edx, [eax + 0x5b9]
mov esi, ecx
shr esi, 1
test cl, 1
cmovne edx, dword [eax + 0x5c0]
mov dword [esp + 0x58], edx
cmovne esi, dword [eax + 0x5bc]
mov dword [esp + 0x5c], esi
sub esp, 0x1c
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp], ebx
lea ecx, [esp + 0xb0]
call fcn.00411976
mov eax, dword [esp + 0x94]
test eax, eax
je 0x406d6e
push eax
call fcn.00411c3a
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x94], 0
test ecx, ecx
je 0x406d45
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00411c88
mov ecx, ebx
push 0
call fcn.00411970
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x94], 0
test ecx, ecx
je 0x406d6e
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00411cdc
mov eax, dword [ebx + 8]
test byte [eax + 0x440], 1
jne 0x4071d7
movzx eax, byte [esp]
xor al, 1
movzx ebx, al
jmp 0x4071f1
mov ebx, 1
jmp 0x4071f1
mov eax, ebx
mov ebx, 1
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4071f1
cmp ecx, 0xfffffff0
jae 0x4072a7
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov edi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, edi
add esp, 4
mov dword [esp + 0x10], eax
add ebx, 2
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
inc ecx
push ecx
push esi
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov eax, ebx
shr al, 1
test bl, 1
lea edi, [esp + 9]
mov ecx, dword [esp + 0x10]
cmove ecx, edi
mov dword [esp + 0x68], ecx
movzx eax, al
cmovne eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x74]
movsd qword [esp], xmm0
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
call fcn.00411b08
add esp, 0xc
test eax, eax
je 0x40705a
mov esi, eax
movaps xmm0, xmmword [0x413650]
movups xmmword [esp + 0x94], xmm0
movaps xmm0, xmmword [0x413660]
movups xmmword [esp + 0xa4], xmm0
movaps xmm0, xmmword [0x413670]
movups xmmword [esp + 0xb4], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0xc4], xmm0
mov dword [esp + 0xd4], 0
movaps xmm0, xmmword [0x413680]
movups xmmword [esp + 0xd8], xmm0
mov dword [esp + 0xe8], 0xffff0000
mov dword [esp + 0xec], 0
lea ecx, [esp + 0xf0]
call fcn.00411b32
mov dword [esp + 0x150], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x154], 0
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x4071a3
movzx eax, byte [esp + 8]
mov ecx, eax
shr ecx, 1
test al, 1
cmovne ecx, dword [esp + 0xc]
cmovne edi, dword [esp + 0x10]
mov word [esp + 0x168], 0x105
mov dword [esp + 0x158], edi
mov dword [esp + 0x15c], ecx
lea eax, [esp + 0x158]
lea edi, [esp + 0x16c]
mov ecx, edi
push eax
call fcn.00411eda
mov dword [esp + 0x88], 0x4136da
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], str.cpuhelp
mov dword [esp + 0x84], 8
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
sub esp, 0x34
movsd xmm0, qword [esp + 0xa4]
movsd qword [esp + 0x24], xmm0
movsd xmm0, qword [esp + 0xac]
movsd qword [esp + 0x1c], xmm0
movsd xmm0, qword [esp + 0xb4]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0xbc]
movsd qword [esp + 8], xmm0
lea eax, [esp + 0xc8]
mov dword [esp + 0x18], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 2
call ebx
add esp, 0x34
mov esi, eax
test byte [esp + 0x16c], 1
je 0x406ffd
push dword [esp + 0x174]
call sub.libc.dll_operator_delete_void_
add esp, 4
test esi, esi
mov edi, dword [esp + 4]
je 0x40700c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test byte [esp + 0x14c], 1
je 0x407025
push dword [esp + 0x154]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov esi, dword [esp + 0x13c]
test esi, esi
je 0x407099
mov edi, dword [esp + 0x140]
mov eax, esi
cmp edi, esi
jne 0x407047
jmp 0x407085
add edi, 0xfffffff4
cmp edi, esi
je 0x40707e
test byte [edi - 0xc], 1
je 0x407040
push dword [edi - 4]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x407040
call fcn.00411e92
movzx edx, byte [esp + 0x28]
test dl, 1
mov edi, dword [esp + 4]
je 0x4071ba
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x4071c0
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x140], esi
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edi, dword [esp + 4]
test byte [esp + 0x124], 1
jne 0x4070df
test byte [esp + 0x118], 1
jne 0x4070f8
test byte [esp + 0x10c], 1
jne 0x407111
test byte [esp + 0x100], 1
jne 0x40712a
test byte [esp + 0xc4], 1
jne 0x407143
mov esi, dword [esp + 0xbc]
test esi, esi
jne 0x40715d
jmp 0x407179
push dword [esp + 0x12c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x118], 1
je 0x4070ad
push dword [esp + 0x120]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x10c], 1
je 0x4070b7
push dword [esp + 0x114]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x100], 1
je 0x4070c1
push dword [esp + 0x108]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc4], 1
je 0x4070cb
push dword [esp + 0xcc]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov esi, dword [esp + 0xbc]
test esi, esi
je 0x407179
mov eax, 0xffffffff
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x407179
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, esi
call fcn.00411ffa
xor ebx, ebx
test byte [esp + 0x28], 1
je 0x40718e
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 8], 1
je 0x4071f1
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x4071f1
mov edi, dword [esp + 4]
test byte [esp + 0x14c], 1
jne 0x407016
jmp 0x407025
shr edx, 1
lea esi, [esp + 0x29]
mov ecx, eax
push edx
push esi
call fcn.00411ac6
mov ebx, 1
test byte [esp + 0x28], 1
jne 0x407182
jmp 0x40718e
push ebx
call fcn.00411aa8
add esp, 4
movzx eax, byte [esp]
xor al, 1
movzx ebx, al
mov dword [esp + 0x20], 0
mov esi, edi
lea ecx, [esp + 0x198]
call fcn.004119ac
mov ecx, dword [esp + 0x18]
dec dword [ecx]
jne 0x407217
mov edi, ecx
call fcn.00406560
push edi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edi, dword [esp + 0x48]
test edi, edi
je 0x40722d
mov eax, 0xffffffff
lock xadd dword [edi + 4], eax
test eax, eax
je 0x407258
dec dword [esi]
jne 0x407241
mov ecx, esi
call fcn.0041196a
push esi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40724e
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, edi
call fcn.00411ffa
dec dword [esi]
jne 0x407241
jmp 0x407231
lea esi, [esp + 0x4c]
push dword [ebx + 0x10]
push dword [ebx + 8]
push esi
call fcn.004119e8
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00411982
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x406cc3
lock dec dword [ecx + 4]
jne 0x406cc3
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406cc3
lea ecx, [esp + 8]
call fcn.00406090
push ebx
push esi
sub esp, 0x10
movzx ebx, byte [esp + 0x24]
mov esi, esp
mov ecx, esi
push 0x266
push dword [esp + 0x20]
call fcn.004078f0
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.004079b0
mov ecx, esi
call fcn.00407b00
call fcn.00411e2c
test bl, bl
mov eax, 0x46
mov ecx, 1
cmovne ecx, eax
push 0
push ecx
call fcn.00411e6e
int3