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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1f4
mov eax, dword [0x5365f0]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x60], esi
test eax, eax
jle 0x4be250
add edx, 4
lea ebx, [ebx]
cmp dword [edx], esi
je 0x4be332
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4be240
xor eax, eax
mov dword [esp + 0x34], eax
cmp byte [edi + 0x1d], 0
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x18]
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
mov dword [esp + 0x4c], eax
jne 0x4be482
cmp dword [edi + 0x3c], 0
jne 0x4be482
test byte [ebx + 0x16], 0x80
jne 0x4be482
mov dword [esp + 0x3c], esi
cmp esi, eax
jae 0x4be482
fldz
mov eax, 0x100
cmp word [esi + 0x10], ax
jne 0x4be46f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
not eax
and eax, dword [ebp + 0x14]
not ecx
and ecx, dword [ebp + 0x18]
and eax, dword [esi + 0x20]
and ecx, dword [esi + 0x24]
or eax, ecx
jne 0x4be46f
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x168]
mov edx, dword [ecx + 0x16c]
and eax, dword [esp + 0x30]
and edx, dword [esp + 0x34]
or eax, edx
je 0x4be46f
mov edi, dword [ecx + 0x20]
fld st(0)
mov ecx, dword [ecx + 0x18]
fst qword [esp + 0x58]
lea ecx, [ecx + ecx*4]
fxch st(1)
lea eax, [edi + ecx*8]
fst qword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
cmp edi, eax
jae 0x4be418
mov edx, 0x200
cmp word [edi + 0x10], dx
jne 0x4be347
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
mov edx, dword [edi + 0xc]
push eax
jmp 0x4be3a9
mov eax, 1
xor edx, edx
call fcn.004f0960
mov dword [esp + 0x34], edx
jmp 0x4be256
mov ecx, dword [esp + 0x60]
cmp dword [edi + 8], ecx
jne 0x4be40d
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp + 0x90], edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x1c]
mov word [esp + 0xaa], cx
mov ecx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xb4], 0x45
mov dword [esp + 0xc0], edi
mov dword [esp + 0xb8], 1
lea edx, [esp + 0xa0]
mov eax, dword [esp + 0x54]
fstp st(1)
mov esi, dword [esp + 0x50]
fstp st(0)
lea ecx, [esp + 0x78]
call fcn.004bfb60
fld qword [esp + 0x90]
fadd qword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x98]
or dword [esp + 0x38], eax
mov ecx, dword [esp + 0x9c]
fst qword [esp + 0x68]
fld qword [esp + 0x80]
or dword [esp + 0x3c], ecx
fadd qword [esp + 0x60]
mov esi, dword [esp + 0x4c]
add esp, 0x10
fst qword [esp + 0x50]
fld qword [edx + 0x18]
fcomp st(2)
fnstsw ax
test ah, 0x41
jnp 0x4be418
mov eax, dword [esp + 0x64]
add edi, 0x28
cmp edi, eax
jb 0x4be312
cmp dword [ebp + 0x24], 0
je 0x4be43c
fstp st(1)
sub esp, 8
fstp qword [esp]
call fcn.004be1a0
fld qword [esp + 0x58]
add esp, 8
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0x58]
fxch st(1)
mov ecx, dword [esp + 0x48]
fld qword [ecx + 0x18]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4be46d
mov eax, dword [esp + 0x28]
fxch st(1)
mov edx, dword [esp + 0x2c]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x20], eax
fstp qword [ecx + 8]
mov dword [ecx + 0x24], edx
mov dword [ecx], 0x10000000
mov dword [ecx + 0x10], esi
jmp 0x4be471
fstp st(1)
fstp st(0)
add esi, 0x28
mov dword [esp + 0x3c], esi
cmp esi, dword [esp + 0x4c]
jb 0x4be294
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5564
mov esp, ebp
pop ebp
ret