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

Disassembly:
sub esp, 0xa8
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov ecx, dword [esp + 0xb0]
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
push esi
mov esi, dword [esp + 0xc0]
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x18], 1
je 0x4cae0e
mov ebx, esi
mov edi, dword [esp + 0x10]
push dword [esp + 0xc8]
push edi
push ebx
push 0
push ebp
call fcn.004c6320
mov ecx, dword [esp + 0xc8]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eee05
add esp, 0xa8
ret
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
cmp dword [edi + 0x18], 5
jne 0x4cae31
mov eax, dword [edi + 0x30]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 0xc], 1
jne 0x4cae31
mov eax, dword [ebx + 0x20]
cmp byte [eax + 4], 0xc
je 0x4cae4f
push dword [edi + 0x20]
call fcn.0045f600
add esp, 4
test al, al
jne 0x4cae49
mov eax, dword [edi + 0x20]
cmp byte [eax + 4], 0xc
jne 0x4caddb
mov ebx, edi
mov dword [esp + 0x1c], edi
cmp ebx, esi
je 0x4caddd
push dword [ebx + 0x20]
push ebp
call fcn.0048e590
push dword [esp + 0xd0]
mov edi, eax
push edi
push ebx
push 1
push ebp
mov dword [esp + 0x34], edi
call fcn.004c6320
mov eax, dword [ebx + 0x20]
add esp, 0x1c
cmp byte [eax + 4], 0xc
jne 0x4caf3b
push edi
push ebp
call fcn.0048edd0
push str.cmat_insert
push dword [ebx + 0x20]
mov edi, eax
push ebp
call fcn.004d63c0
mov ecx, dword [esp + 0x24]
mov ebp, eax
mov ebx, dword [esi + 0x40]
push 0x4a
mov esi, dword [ecx + 4]
mov ecx, dword [esp + 0x2c]
push dword [ecx + 0x10]
call fcn.00409a30
xorps xmm0, xmm0
lea ecx, [ebp + 0x48]
movups xmmword [esp + 0x3c], xmm0
mov edx, eax
mov dword [esp + 0x48], ecx
movups xmm0, xmmword [esp + 0x3c]
lea eax, [edi + 0x48]
push edx
push dword [esp + 0x34]
movups xmmword [edx + 0x58], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x50], esi
movups xmm0, xmmword [esp + 0x44]
movups xmmword [edx + 0x68], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x50], eax
movups xmm0, xmmword [esp + 0x44]
movups xmmword [edx + 0x78], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x50], ebx
movups xmm0, xmmword [esp + 0x44]
movups xmmword [edx + 0x88], xmm0
call fcn.0041dc20
push dword [ebp + 0x24]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push edi
push ebp
call fcn.00498dc0
mov ebx, dword [esp + 0x4c]
add esp, 0x30
jmp 0x4cade1
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
mov esi, dword [edi + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], esi
cmp dword [ecx + 0xc], 5
jne 0x4cafaf
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407cf0
mov dword [esp + 0x1c], eax
mov ecx, edx
movzx eax, byte [esi + 0x10]
add esp, 0xc
cdq
mov dword [esp + 0x18], eax
cmp ecx, edx
ja 0x4cb047
mov eax, dword [esp + 0x10]
jb 0x4caf96
cmp eax, dword [esp + 0x18]
jae 0x4cb047
push eax
push dword [esp + 0x18]
push esi
push ebp
call fcn.00412370
mov esi, eax
add esp, 0x10
mov dword [edi + 4], esi
jmp 0x4cade1
movzx ebx, byte [eax + 0x11]
lea esi, [esp + 0x34]
xor edi, edi
nop dword [eax]
push ebx
push 0
push edi
call fcn.0040fd20
inc edi
mov dword [esi], eax
add esp, 0xc
mov dword [esi + 4], edx
lea esi, [esi + 8]
cmp edi, 0x10
jb 0x4cafc0
mov esi, dword [esp + 0x10]
push ebx
movzx eax, byte [esi + 0x10]
push eax
push dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.00409be0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cb01c
mov eax, dword [esp + 0x10]
shl eax, 3
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.004f06c0
push edi
push ebp
call fcn.0041dc20
add esp, 0x14
add edi, 0x18
push edi
push dword [esp + 0x34]
push 0x129
push ebp
call fcn.0041d890
push esi
push dword [esp + 0x28]
push eax
push 0x71
push ebp
call fcn.0041d900
mov ebx, dword [esp + 0x40]
add esp, 0x24
mov edi, dword [esp + 0x18]
mov esi, eax
mov dword [edi + 4], esi
jmp 0x4cade1