Function at 0x4cae80
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 0x4caeee
mov ebx, esi
mov edi, dword [esp + 0x10]
push dword [esp + 0xc8]
push edi
push ebx
push 0
push ebp
call fcn.004c6400
mov ecx, dword [esp + 0xc8]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eeee5
add esp, 0xa8
ret
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
cmp dword [edi + 0x18], 5
jne 0x4caf11
mov eax, dword [edi + 0x30]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 0xc], 1
jne 0x4caf11
mov eax, dword [ebx + 0x20]
cmp byte [eax + 4], 0xc
je 0x4caf2f
push dword [edi + 0x20]
call fcn.0045f6b0
add esp, 4
test al, al
jne 0x4caf29
mov eax, dword [edi + 0x20]
cmp byte [eax + 4], 0xc
jne 0x4caebb
mov ebx, edi
mov dword [esp + 0x1c], edi
cmp ebx, esi
je 0x4caebd
push dword [ebx + 0x20]
push ebp
call fcn.0048e650
push dword [esp + 0xd0]
mov edi, eax
push edi
push ebx
push 1
push ebp
mov dword [esp + 0x34], edi
call fcn.004c6400
mov eax, dword [ebx + 0x20]
add esp, 0x1c
cmp byte [eax + 4], 0xc
jne 0x4cb01b
push edi
push ebp
call fcn.0048ee90
push str.cmat_insert
push dword [ebx + 0x20]
mov edi, eax
push ebp
call fcn.004d64a0
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.00409aa0
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.0041dcb0
push dword [ebp + 0x24]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push edi
push ebp
call fcn.00498ea0
mov ebx, dword [esp + 0x4c]
add esp, 0x30
jmp 0x4caec1
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 0x4cb08f
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407d60
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 0x4cb127
mov eax, dword [esp + 0x10]
jb 0x4cb076
cmp eax, dword [esp + 0x18]
jae 0x4cb127
push eax
push dword [esp + 0x18]
push esi
push ebp
call fcn.00412400
mov esi, eax
add esp, 0x10
mov dword [edi + 4], esi
jmp 0x4caec1
movzx ebx, byte [eax + 0x11]
lea esi, [esp + 0x34]
xor edi, edi
nop dword [eax]
push ebx
push 0
push edi
call fcn.0040fdb0
inc edi
mov dword [esi], eax
add esp, 0xc
mov dword [esi + 4], edx
lea esi, [esi + 8]
cmp edi, 0x10
jb 0x4cb0a0
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.00409c50
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cb0fc
mov eax, dword [esp + 0x10]
shl eax, 3
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.004f07a0
push edi
push ebp
call fcn.0041dcb0
add esp, 0x14
add edi, 0x18
push edi
push dword [esp + 0x34]
push 0x129
push ebp
call fcn.0041d920
push esi
push dword [esp + 0x28]
push eax
push 0x71
push ebp
call fcn.0041d990
mov ebx, dword [esp + 0x40]
add esp, 0x24
mov edi, dword [esp + 0x18]
mov esi, eax
mov dword [edi + 4], esi
jmp 0x4caec1