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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov edi, edx
mov esi, ecx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov byte [0x424a89], 1
call fcn.0041cc3e
mov ecx, dword [0x424a90]
mov edx, dword [0x424a94]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.0041ccbc
add esp, 0x10
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, ebp
jae 0x40b73c
mov ecx, eax
push ebp
push edi
call fcn.0041cbc6
jmp 0x40b750
test ebp, ebp
je 0x40b750
push ebp
push edi
push ecx
mov edi, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [edi + 0x10], ebp
lea edi, [esp + 0x7c]
lea ecx, [esp + 0x14]
push ebx
call fcn.0041ce36
test byte [esp + 0x1c], 1
jne 0x40b77e
call fcn.0041cc3e
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x40b7e2
mov byte [ecx], 0x28
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [eax + 0x10], ecx
jmp 0x40b7f3
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp], eax
lea eax, [esp + 0xf]
mov ecx, esp
lea edx, [esp + 0x28]
push eax
push ecx
push edx
call fcn.0040dbd0
add esp, 0xc
mov ecx, dword [esp]
test ecx, ecx
je 0x40b7ae
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041cc3e
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x40b848
mov byte [ecx], 0x28
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 2
ja 0x40b867
mov ecx, eax
push 3
push 0x41ec53
jmp 0x40b808
mov ecx, eax
push 1
push 0x41ec51
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [eax + 0xc]
sub ebp, ecx
cmp ebp, ebx
jae 0x40b817
mov ecx, eax
push ebx
push edx
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
jne 0x40b837
jmp 0x40b87e
test ebx, ebx
je 0x40b832
push ebx
push edx
push ecx
mov ebp, eax
call sub.msvcrt.dll_memcpy
mov eax, ebp
add esp, 0xc
add ebx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ebx
mov ecx, ebx
cmp dword [eax + 0xc], ecx
je 0x40b87e
mov byte [ecx], 0x29
inc dword [eax + 0x10]
cmp dword [edi + 4], 0
jne 0x40b896
jmp 0x40b927
mov ecx, eax
push 1
push 0x41ec51
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 2
jbe 0x40b7d7
mov byte [ecx + 2], 0x3f
mov word [ecx], 0x3f3f
mov ecx, dword [eax + 0x10]
add ecx, 3
mov dword [eax + 0x10], ecx
cmp dword [eax + 0xc], ecx
jne 0x40b837
mov ecx, eax
push 1
push 0x41ebf3
call fcn.0041cbc6
cmp dword [edi + 4], 0
je 0x40b927
call fcn.0041cc3e
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0x12
ja 0x40b8bb
mov ecx, eax
push 0x13
push str.__for_architecture
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
jmp 0x40b8d5
movups xmm0, xmmword [str.__for_architecture]
movups xmmword [ecx], xmm0
mov dword [ecx + 0xf], 0x20657275
mov ecx, dword [eax + 0x10]
add ecx, 0x13
mov dword [eax + 0x10], ecx
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov ebx, dword [eax + 0xc]
sub ebx, ecx
cmp ebx, edi
jae 0x40b8f1
mov ecx, eax
push edi
push edx
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
jmp 0x40b90c
test edi, edi
je 0x40b90c
push edi
push edx
push ecx
mov ebx, eax
call sub.msvcrt.dll_memcpy
mov eax, ebx
add esp, 0xc
add edi, dword [ebx + 0x10]
mov dword [ebx + 0x10], edi
mov ecx, edi
cmp dword [eax + 0xc], ecx
je 0x40b919
mov byte [ecx], 0x29
inc dword [eax + 0x10]
jmp 0x40b927
mov ecx, eax
push 1
push 0x41ebf3
call fcn.0041cbc6
xorps xmm0, xmm0
movsd qword [esp], xmm0
mov dword [esp + 8], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov eax, dword [sym.imp.libLLVM_18.dll_vtable_for_llvm::raw_string_ostream]
add eax, 8
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [esp + 0x48], eax
lea edi, [esp + 0x28]
mov ecx, edi
push 0
push 0
push 0
call fcn.0041cbc0
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov dword [esi], 0
mov word [esp + 0x5c], 0x101
sub esp, 0x1c
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.0041cc14
add esp, 0x1c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b9bf
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x30]
je 0x40b9d2
lea ecx, [esp + 0x28]
call fcn.0041cbba
call fcn.0041cc3e
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 1
ja 0x40ba03
mov ecx, eax
push 2
push 0x41eb4c
call fcn.0041cbc6
movzx edx, byte [esp]
test dl, 1
jne 0x40ba15
shr edx, 1
lea esi, [esp + 1]
jmp 0x40ba1d
mov word [ecx], 0x203a
add dword [eax + 0x10], 2
movzx edx, byte [esp]
test dl, 1
je 0x40b9fb
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, eax
push edx
push esi
call fcn.0041cbc6
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x40ba73
mov byte [ecx], 0xa
inc dword [eax + 0x10]
lea ecx, [esp + 0x28]
call fcn.0041cbd2
test byte [esp], 1
je 0x40ba4f
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x1c], 1
je 0x40ba6b
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x40ba6b
mov eax, dword [ecx]
call dword [eax + 4]
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
push 1
push 0x41eb4f
call fcn.0041cbc6
lea ecx, [esp + 0x28]
call fcn.0041cbd2
test byte [esp], 1
jne 0x40ba43
jmp 0x40ba4f