Function at 0x406300
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 ebp, dword [esp + 0x74]
mov byte [0x415a91], 1
call fcn.00410a36
movzx ecx, byte [0x415a94]
mov edx, ecx
shr edx, 1
test cl, 1
mov ecx, 0x415a95
cmovne ecx, dword [0x415a9c]
mov dword [esp + 0x20], ecx
cmovne edx, dword [0x415a98]
mov dword [esp + 0x24], edx
sub esp, 0x10
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410a72
add esp, 0x10
mov ebx, eax
mov eax, dword [eax + 0x10]
cmp dword [ebx + 0xc], eax
je 0x406393
mov byte [eax], 0x27
mov eax, dword [ebx + 0x10]
inc eax
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, ebp
jae 0x4063af
mov ecx, ebx
push ebp
push edi
call fcn.004109e2
mov ebx, eax
mov eax, dword [eax + 0x10]
jmp 0x4063c6
mov ecx, ebx
push 1
push 0x41117a
call fcn.004109e2
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, ebp
jb 0x406383
test ebp, ebp
je 0x4063c6
push ebp
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
add eax, ebp
mov dword [ebx + 0x10], eax
mov edi, dword [esp + 0x78]
cmp dword [ebx + 0xc], eax
je 0x4063d7
mov byte [eax], 0x27
inc dword [ebx + 0x10]
jmp 0x4063e5
mov ecx, ebx
push 1
push 0x41117a
call fcn.004109e2
lea ebx, [esp + 0x7c]
lea ecx, [esp + 0x14]
push edi
call fcn.00410afc
test byte [esp + 0x1c], 1
jne 0x40641c
call fcn.00410a36
mov edi, eax
mov eax, dword [eax + 0x10]
cmp dword [edi + 0xc], eax
je 0x4064a4
mov byte [eax], 0x28
mov eax, dword [edi + 0x10]
inc eax
mov dword [edi + 0x10], eax
jmp 0x4064b7
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.00409bb0
add esp, 0xc
mov ecx, dword [esp]
test ecx, ecx
je 0x40644c
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00410a36
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x406505
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 0x406524
mov ecx, eax
push 3
push 0x411938
call fcn.004109e2
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x40653f
mov byte [ecx], 0x29
inc dword [eax + 0x10]
cmp dword [ebx + 4], 0
jne 0x40655b
jmp 0x4065f6
mov ecx, edi
push 1
push 0x411874
call fcn.004109e2
mov edi, eax
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
sub ecx, eax
cmp ecx, ebp
jae 0x4064d8
mov ecx, edi
push ebp
push edx
call fcn.004109e2
mov edi, eax
mov eax, dword [eax + 0x10]
jmp 0x4064ef
test ebp, ebp
je 0x4064ef
push ebp
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebp, dword [edi + 0x10]
mov dword [edi + 0x10], ebp
mov eax, ebp
cmp dword [edi + 0xc], eax
je 0x406543
mov byte [eax], 0x29
inc dword [edi + 0x10]
cmp dword [ebx + 4], 0
jne 0x40655b
jmp 0x4065f6
mov ecx, eax
push 1
push 0x411874
call fcn.004109e2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 2
jbe 0x406475
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 0x40648f
mov ecx, eax
jmp 0x406545
mov ecx, edi
push 1
push 0x41189d
call fcn.004109e2
cmp dword [ebx + 4], 0
je 0x4065f6
call fcn.00410a36
mov edi, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 0x12
ja 0x406584
mov ecx, edi
push 0x13
push str.__for_architecture
call fcn.004109e2
mov edi, eax
mov eax, dword [eax + 0x10]
jmp 0x40659e
movups xmm0, xmmword [str.__for_architecture]
movups xmmword [eax], xmm0
mov dword [eax + 0xf], 0x20657275
mov eax, dword [edi + 0x10]
add eax, 0x13
mov dword [edi + 0x10], eax
mov edx, dword [ebx]
mov ebx, dword [ebx + 4]
mov ecx, dword [edi + 0xc]
sub ecx, eax
cmp ecx, ebx
jae 0x4065bc
mov ecx, edi
push ebx
push edx
call fcn.004109e2
mov edi, eax
mov eax, dword [eax + 0x10]
jmp 0x4065d3
test ebx, ebx
je 0x4065d3
push ebx
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebx, dword [edi + 0x10]
mov dword [edi + 0x10], ebx
mov eax, ebx
mov ecx, dword [edi + 0xc]
sub ecx, eax
cmp ecx, 1
ja 0x4065ed
mov ecx, edi
push 2
push 0x411932
call fcn.004109e2
jmp 0x4065f6
mov word [eax], 0x2029
add dword [edi + 0x10], 2
mov dword [esp + 4], 0
mov dword [esp], 0
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_17.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.004109dc
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.00410a18
add esp, 0x1c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406695
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x30]
je 0x4066a8
lea ecx, [esp + 0x28]
call fcn.004109d6
call fcn.00410a36
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 1
ja 0x4066d9
mov ecx, eax
push 2
push 0x411935
call fcn.004109e2
movzx edx, byte [esp]
test dl, 1
jne 0x4066eb
shr edx, 1
lea esi, [esp + 1]
jmp 0x4066f3
mov word [ecx], 0x203a
add dword [eax + 0x10], 2
movzx edx, byte [esp]
test dl, 1
je 0x4066d1
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, eax
push edx
push esi
call fcn.004109e2
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x406749
mov byte [ecx], 0xa
inc dword [eax + 0x10]
lea ecx, [esp + 0x28]
call fcn.004109ee
test byte [esp], 1
je 0x406725
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x1c], 1
je 0x406741
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x406741
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 0x41189f
call fcn.004109e2
lea ecx, [esp + 0x28]
call fcn.004109ee
test byte [esp], 1
jne 0x406719
jmp 0x406725