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

Disassembly:
sub esp, 0xa8
mov eax, dword [0x97efc0]
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 0x4cacee
mov ebx, esi
mov edi, dword [esp + 0x10]
push dword [esp + 0xc8]
push edi
push ebx
push 0
push ebp
call fcn.004c6200
mov ecx, dword [esp + 0xc8]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eec95
add esp, 0xa8
ret
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
cmp dword [edi + 0x18], 5
jne 0x4cad11
mov eax, dword [edi + 0x30]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 0xc], 1
jne 0x4cad11
mov eax, dword [ebx + 0x20]
cmp byte [eax + 4], 0xc
je 0x4cad2f
push dword [edi + 0x20]
call fcn.0045f520
add esp, 4
test al, al
jne 0x4cad29
mov eax, dword [edi + 0x20]
cmp byte [eax + 4], 0xc
jne 0x4cacbb
mov ebx, edi
mov dword [esp + 0x1c], edi
cmp ebx, esi
je 0x4cacbd
push dword [ebx + 0x20]
push ebp
call fcn.0048e4c0
push dword [esp + 0xd0]
mov edi, eax
push edi
push ebx
push 1
push ebp
mov dword [esp + 0x34], edi
call fcn.004c6200
mov eax, dword [ebx + 0x20]
add esp, 0x1c
cmp byte [eax + 4], 0xc
jne 0x4cae1b
push edi
push ebp
call fcn.0048ed00
push str.cmat_insert
push dword [ebx + 0x20]
mov edi, eax
push ebp
call fcn.004d62a0
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.00409a10
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.0041dbe0
push dword [ebp + 0x24]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push edi
push ebp
call fcn.00498cf0
mov ebx, dword [esp + 0x4c]
add esp, 0x30
jmp 0x4cacc1
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 0x4cae8f
movzx eax, byte [ecx + 0x29]
push eax
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.00407cd0
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 0x4caf27
mov eax, dword [esp + 0x10]
jb 0x4cae76
cmp eax, dword [esp + 0x18]
jae 0x4caf27
push eax
push dword [esp + 0x18]
push esi
push ebp
call fcn.00412340
mov esi, eax
add esp, 0x10
mov dword [edi + 4], esi
jmp 0x4cacc1
movzx ebx, byte [eax + 0x11]
lea esi, [esp + 0x34]
xor edi, edi
nop dword [eax]
push ebx
push 0
push edi
call fcn.0040fcf0
inc edi
mov dword [esi], eax
add esp, 0xc
mov dword [esi + 4], edx
lea esi, [esi + 8]
cmp edi, 0x10
jb 0x4caea0
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.00409bc0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4caefc
mov eax, dword [esp + 0x10]
shl eax, 3
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.004f0550
push edi
push ebp
call fcn.0041dbe0
add esp, 0x14
add edi, 0x18
push edi
push dword [esp + 0x34]
push 0x129
push ebp
call fcn.0041d850
push esi
push dword [esp + 0x28]
push eax
push 0x71
push ebp
call fcn.0041d8c0
mov ebx, dword [esp + 0x40]
add esp, 0x24
mov edi, dword [esp + 0x18]
mov esi, eax
mov dword [edi + 4], esi
jmp 0x4cacc1