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

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xdc]
lea eax, [esp + 0x1c]
mov ebx, 6
push eax
mov ecx, edi
mov dword [esp + 0x20], str.Domain
mov dword [esp + 0x24], ebx
call fcn.00490140
mov ecx, dword [0x67a5e8]
mov esi, eax
xor ebp, ebp
mov edx, ecx
cmp esi, ebp
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
je 0x4ce739
push ebp
mov ecx, esi
call fcn.0048fa60
fstp dword [esp + 0x38]
push 1
mov ecx, esi
call fcn.0048fa60
fstp dword [esp + 0x2c]
push 2
mov ecx, esi
call fcn.0048fa60
fstp dword [esp + 0x34]
push 3
mov ecx, esi
call fcn.0048fa60
fstp dword [esp + 0x30]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x90]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x24], str.Matrix
mov dword [esp + 0x28], ebx
call fcn.00490200
mov edx, dword [0x67a5ec]
mov dword [esp + 0x74], 0
mov eax, edx
mov ecx, edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x84], ecx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
call fcn.004a2900
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x7c]
call fcn.004a2900
lea edx, [esp + 0x78]
lea ecx, [esp + 0x60]
push edx
call fcn.004a29c0
mov edi, dword [esp + 0xd4]
mov dword [esp + 0x28], ebp
mov esi, dword [edi + 8]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 0x14]
cmp esi, ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
jle 0x4ce9b5
mov dword [esp + 0x18], ebp
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov edx, dword [esp + 0x18]
xor ebp, ebp
add eax, edx
mov dword [esp + 0x10], ebp
test ebx, ebx
jle 0x4ce996
fild dword [esp + 0x28]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x40]
fild dword [esp + 0x10]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
fstp dword [esp + 0x14]
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], eax
call fcn.004a2790
fld dword [esp + 0x10]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x4ce97a
fld dword [esp + 0x10]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4ce97a
fld dword [esp + 0x14]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
jne 0x4ce97a
fld dword [esp + 0x14]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
je 0x4ce97a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xe4]
xor esi, esi
mov dword [esp + 0x5c], ecx
test eax, eax
jle 0x4ce90c
mov edi, dword [esp + 0xe0]
mov ebx, eax
lea edx, [esp + 0x3c]
lea eax, [esp + esi*4 + 0xa8]
push edx
push eax
lea ecx, [esp + 0x60]
push 2
push ecx
mov ecx, dword [edi]
call fcn.004e5820
mov edx, dword [esp + 0x3c]
add edi, 4
add esi, edx
dec ebx
jne 0x4ce8da
mov edi, dword [esp + 0xd4]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0xe8]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [edx + 4]
fld dword [esp + 0x54]
fmul dword [0x674c3c]
call fcn.0046572c
mov ecx, dword [esp + 0xec]
mov esi, eax
fld dword [esp + 0x50]
fmul dword [0x674c3c]
shl ecx, 8
or esi, ecx
shl esi, 8
call fcn.0046572c
fld dword [esp + 0x48]
fmul dword [0x674c3c]
or esi, eax
shl esi, 8
call fcn.0046572c
mov edx, dword [esp + 0x24]
or esi, eax
mov dword [edx], esi
mov ecx, dword [esp + 0x24]
inc ebp
add ecx, 4
cmp ebp, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], ecx
jl 0x4ce845
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc eax
add edx, ecx
cmp eax, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
jl 0x4ce81e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret