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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x484], 0
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x5c], 0
jle 0x4be90b
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
add ecx, 0x888
sub edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x78], edx
mov eax, dword [ecx - 0x400]
mov edx, dword [ebp + 0x28]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
mov dword [esp + 0x58], eax
jne 0x4be5c9
mov eax, dword [ecx]
cmp dword [edx + eax*4], 0
je 0x4be8e7
mov eax, dword [ecx - 0x400]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov edi, dword [eax + edx]
add ecx, ecx
add ecx, ecx
mov esi, dword [ecx + edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x68], edi
lea edi, [edi + edx*4]
lea edx, [esi + edx*4]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x24]
mov eax, dword [eax + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [ebp + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0xfc]
fld qword [eax*8 + 0x522498]
mov eax, dword [ecx + edx*4 + 0x138]
fstp dword [esp + 0x70]
mov dword [esp + 0x38], edi
fld qword [eax*8 + 0x522498]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
fstp dword [esp + 0x44]
cmp dword [eax + 0x1f8], 0
mov dword [esp + 0x48], esi
je 0x4be64c
mov ebx, dword [eax + 0x200]
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov ebx, eax
shl ebx, 4
sub ebx, eax
add ebx, edx
cmp dword [esp + 0x40], 0x3e8
mov eax, dword [ecx + ebx*4 + 0x84]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ebx + eax*4], 1
jle 0x4be69c
mov ecx, dword [ecx + edx*4 + 0x138]
fld qword [ecx*8 + 0x5224e0]
fstp dword [esp + 0x44]
mov ebx, dword [edi]
xor edx, edx
mov dword [esp + 0x58], edx
test ebx, ebx
jle 0x4be8e3
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x18], 0
fldz
fstp dword [esp + 0x1c]
jle 0x4be805
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
lea ebx, [ecx + esi]
mov ecx, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x7c], eax
mov eax, ecx
mov ecx, dword [esp + 0x6c]
sub eax, esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
sub eax, esi
sub edi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
sub ecx, esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], eax
cmp edx, dword [ebp + 0x2c]
jge 0x4be93d
cmp edx, dword [esp + 0x54]
jl 0x4be742
mov edx, dword [esp + 0x28]
fld dword [edx + ebx]
fabs
fld dword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4be740
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jnp 0x4be76f
jmp 0x4be742
fstp st(0)
mov eax, dword [esp + 0x28]
fld dword [eax + ebx]
fabs
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4be912
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x4be914
mov edx, dword [esp + 0x74]
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + ebx]
mov edx, dword [esp + 0x7c]
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x38]
fld dword [ecx + edx]
add edi, ebx
push edi
mov edi, dword [eax]
push ecx
mov ecx, dword [esp + 0x88]
fstp dword [esp]
mov esi, dword [eax + ecx]
call fcn.004bdc80
mov edx, dword [esp + 0x38]
fld dword [edx + ebx]
lea esi, [edx + ebx]
fadd qword [0x4dc400]
add esp, 4
fstp qword [esp]
call fcn.004a2a50
fcomp qword [0x4db6d8]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x4be7e2
fld dword [esi]
fmul st(0), st(0)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x34], 4
inc edx
add ebx, 4
sub dword [esp + 0x50], 1
mov dword [esp + 0x4c], edx
jne 0x4be70a
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x1f8], 0
je 0x4be8bd
cmp dword [esp + 0x18], 0
mov dword [esp + 0x50], 0
jle 0x4be8bd
mov ebx, dword [esp + 0x3c]
lea esp, [esp]
fld dword [esp + 0x1c]
mov edx, dword [edi + 4]
fcomp qword [edx + 0x208]
fnstsw ax
test ah, 1
jne 0x4be8bd
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edi, dword [ebx + ecx]
cmp edi, dword [ebp + 0x2c]
jge 0x4be8a4
cmp edi, dword [esp + 0x54]
jl 0x4be8a4
mov edx, dword [esp + 0x38]
fld dword [edx + edi*4]
sub esp, 8
fadd qword [0x4dc400]
fstp qword [esp]
call fcn.004a2a50
fcomp qword [0x4db6d8]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x4be8a4
push ecx
mov ecx, dword [esp + 0x3c]
fld dword [ecx + edi*4]
fstp dword [esp]
call fcn.004baab0
fstp dword [ecx + edi*4]
add esp, 4
fld dword [esp + 0x1c]
fsub qword [0x4dc408]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov edi, dword [ebp + 0x10]
inc eax
add ebx, 4
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
jl 0x4be830
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [edi]
add edx, eax
add eax, eax
add eax, eax
add ecx, eax
cmp edx, ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], ecx
jl 0x4be6b2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 0x14]
add dword [esp + 0x24], 4
inc eax
add ecx, 4
cmp eax, dword [edx + 0x484]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], ecx
jl 0x4be5a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fld dword [ebx]
mov eax, dword [esp + 0x28]
sub esp, 8
fstp dword [esp + 4]
add ecx, ebx
fld dword [eax + ebx]
lea edx, [edi + ebx]
fstp dword [esp]
call fcn.004bdbc0
mov ecx, dword [esp + 0x38]
add esp, 8
jmp 0x4be7e6
fldz
fst dword [edi + ebx]
fstp dword [ecx + ebx]
jmp 0x4be7e6