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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x50c7c4]
xor eax, esp
mov dword [esp + 0x1d8], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], eax
xor eax, eax
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x3c], edi
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], ebx
mov edx, dword [ecx]
test edx, edx
jle 0x489320
add ecx, 4
lea ebx, [ebx]
cmp dword [ecx], ebx
je 0x489412
inc eax
add ecx, 4
cmp eax, edx
jl 0x489310
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
cmp byte [esi + 0x16], 0
mov eax, dword [esp + 0x3c]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x14]
lea eax, [eax + eax*4]
lea eax, [edi + eax*8]
mov dword [esp + 0x10], eax
jne 0x48956e
cmp dword [esi + 0x34], 0
jne 0x48956e
cmp edi, eax
jae 0x48956e
movsd xmm5, qword [0x4fe240]
mov ecx, 0x100
movsd xmm4, qword [0x4fe268]
mov edi, edi
cmp word [edi + 0x10], cx
jne 0x48955b
mov ecx, ebx
mov eax, edx
not ecx
not eax
and ecx, dword [edi + 0x20]
and eax, dword [edi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x489552
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + 0x160]
mov eax, dword [edx + 0x164]
and ecx, ebx
and eax, dword [esp + 0x14]
or ecx, eax
je 0x489552
mov eax, dword [edx + 0x14]
xorps xmm0, xmm0
mov esi, dword [edx + 0x1c]
xorps xmm3, xmm3
movlpd qword [esp + 0x18], xmm0
xorps xmm2, xmm2
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*4]
movsd qword [esp + 0x50], xmm3
lea ebx, [esi + eax*8]
movsd qword [esp + 0x48], xmm2
mov eax, dword [esp + 0x1c]
cmp esi, ebx
jae 0x489500
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov edx, 0x200
cmp word [esi + 0x10], dx
jne 0x48942c
mov edx, dword [esi + 0xc]
jmp 0x489471
xor ebx, ebx
xor edx, edx
bts ebx, eax
cmp eax, 0x20
cmovae edx, ebx
xor ebx, edx
cmp eax, 0x40
cmovae edx, ebx
jmp 0x489331
mov edx, dword [esp + 0x44]
cmp dword [esi + 8], edx
jne 0x4894e5
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x80]
mov byte [esp + 0x90], 0x45
mov dword [esp + 0x9c], esi
mov dword [esp + 0x94], 1
mov eax, dword [ecx]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x58]
push eax
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x4c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x4c]
call fcn.0048aac0
movsd xmm0, qword [esp + 0x8c]
add esp, 0x1c
addsd xmm0, qword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
or ecx, dword [esp + 0x78]
or eax, dword [esp + 0x7c]
movapd xmm3, xmm0
comisd xmm3, xmmword [edx + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x60]
addsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x50], xmm3
movapd xmm2, xmm0
movsd qword [esp + 0x48], xmm2
jae 0x4894f0
add esi, 0x28
cmp esi, ebx
jb 0x489402
movsd xmm5, qword [0x4fe240]
movsd xmm4, qword [0x4fe268]
cmp dword [ebp + 0x1c], 0
je 0x48952a
comisd xmm2, xmm4
movapd xmm0, xmm5
movapd xmm1, xmm4
jbe 0x489522
mulsd xmm1, xmm4
addsd xmm0, xmm5
comisd xmm2, xmm1
ja 0x489514
mulsd xmm0, xmm2
addsd xmm3, xmm0
mov ebx, dword [esp + 0x38]
movsd xmm0, qword [ebx + 0x18]
comisd xmm0, xmm3
jbe 0x489552
movsd qword [ebx + 0x18], xmm3
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], eax
movsd qword [ebx + 8], xmm2
mov dword [ebx], 0x10000000
mov dword [ebx + 0x10], edi
mov eax, dword [esp + 0x10]
mov ecx, 0x100
mov ebx, dword [esp + 0x28]
add edi, 0x28
mov edx, dword [esp + 0x14]
cmp edi, eax
jb 0x489380
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret