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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov ebx, edx
mov dword [esp + 8], ecx
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [sym.imp.libLLVM_18.dll_llvm::ErrorInfoBase::ID]
push edx
call dword [eax + 0x18]
mov edi, dword [ebx]
mov dword [ebx], 0
test al, al
je 0x40d166
mov ebp, dword [esp + 0xa0]
call fcn.0041cc3e
mov ecx, dword [0x424a90]
mov edx, dword [0x424a94]
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x94]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.0041ccc2
add esp, 0x10
mov ebx, eax
lea ecx, [esp + 0x78]
push dword [ebp]
call fcn.0041cd0a
movzx eax, byte [esp + 0x78]
test al, 1
je 0x40d171
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x40d177
mov ecx, dword [ebp]
movzx eax, byte [ecx + 0x10]
test eax, eax
je 0x40d190
cmp eax, 1
jne 0x40d1aa
mov dword [esp + 0x2c], 0x41ec51
mov ecx, 0x41ec51
mov word [esp + 0x3c], 0x103
mov al, 3
mov dword [esp], eax
mov al, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
movzx edx, byte [eax + 0x10]
cmp edx, 1
je 0x40d1f7
test edx, edx
jne 0x40d221
mov word [esp + 0x1c], 0x100
mov word [esp + 0x50], 0x100
jmp 0x40d2c7
mov eax, dword [esp + 8]
mov dword [eax], edi
jmp 0x40d402
shr eax, 1
test eax, eax
jne 0x40d108
mov eax, dword [ebp + 4]
movzx ecx, word [eax + 0x10]
mov word [esp + 0x50], cx
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x40], xmm0
jmp 0x40d2c7
mov word [esp + 0x3c], 0x100
mov word [esp + 0x1c], 0x100
mov word [esp + 0x50], 0x100
jmp 0x40d2c7
cmp byte [ecx + 0x11], 1
mov edx, dword [ecx + 4]
cmove ecx, dword [ecx]
movzx esi, al
mov eax, 2
cmove eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x41ec51
mov dword [esp], eax
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], 3
mov dword [esp + 4], 0
mov eax, dword [ebp + 4]
movzx edx, byte [eax + 0x10]
cmp edx, 1
jne 0x40d14b
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esp + 0xc], xmm0
cmp cl, 1
je 0x40d27c
movzx eax, cl
test eax, eax
jne 0x40d28d
mov word [esp + 0x50], 0x100
jmp 0x40d2c7
cmp byte [esp + 4], 0
lea ebp, [esp + 0x2c]
cmovne ebp, ecx
movzx ecx, byte [esp]
mov esi, 2
cmove ecx, esi
cmp byte [eax + 0x11], 1
mov esi, dword [eax + 4]
mov dword [esp], esi
cmove eax, dword [eax]
movzx edx, dl
mov esi, 2
cmovne edx, esi
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1d], dl
cmp cl, 1
jne 0x40d20e
mov dword [esp + 0x40], 0x41ebf3
mov word [esp + 0x50], 0x103
jmp 0x40d2c7
cmp byte [esp + 0x1d], 1
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0xc]
cmove edx, dword [esp + 0xc]
mov ecx, 2
cmove ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x48], 0x41ebf3
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], 3
lea ecx, [esp + 0x40]
push ebx
call fcn.0041cd10
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
sub ecx, eax
cmp ecx, 1
ja 0x40d2f0
mov ecx, ebx
push 2
push 0x41eb4c
call fcn.0041cbc6
mov ebx, eax
jmp 0x40d2f9
mov word [eax], 0x203a
add dword [ebx + 0x10], 2
lea ecx, [esp + 0x6c]
push dword [ebp + 8]
call fcn.0041cd0a
movzx eax, byte [esp + 0x6c]
test al, 1
je 0x40d32f
mov eax, dword [esp + 0x70]
test eax, eax
je 0x40d335
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x10]
cmp ecx, 1
je 0x40d33e
test ecx, ecx
jne 0x40d34f
mov word [esp + 0x68], 0x100
jmp 0x40d37d
shr eax, 1
test eax, eax
jne 0x40d316
mov word [esp + 0x68], 0x101
jmp 0x40d37d
mov dword [esp + 0x58], 0x41eb4c
mov word [esp + 0x68], 0x103
jmp 0x40d37d
cmp byte [eax + 0x11], 1
mov ebp, dword [eax + 4]
cmove eax, dword [eax]
movzx ecx, cl
mov edx, 2
cmove edx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 0x41eb4c
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], 3
lea ecx, [esp + 0x58]
push ebx
call fcn.0041cd10
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push edi
call dword [eax + 0xc]
movzx eax, byte [esp + 0x20]
test al, 1
je 0x40d3a4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x40d3aa
shr eax, 1
lea edx, [esp + 0x21]
mov ecx, ebx
push eax
push edx
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x40d422
mov byte [ecx], 0xa
inc dword [eax + 0x10]
test byte [esp + 0x20], 1
je 0x40d3d4
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x6c], 1
jne 0x40d40d
test byte [esp + 0x78], 1
je 0x40d3f1
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 8]
mov dword [eax], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x74]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
jne 0x40d3e2
jmp 0x40d3f1
mov ecx, eax
push 1
push 0x41eb4f
call fcn.0041cbc6
test byte [esp + 0x20], 1
jne 0x40d3c8
jmp 0x40d3d4